diff --git a/docs/Configuration.md b/docs/Configuration.md index 389169ccc708..ffc4b4f35b6a 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -2031,9 +2031,9 @@ class CustomSequencer extends Sequencer { * Sharding is applied before sorting */ shard(tests, {shardIndex, shardCount}) { - const shardSize = Math.ceil(tests.length / options.shardCount); - const shardStart = shardSize * (options.shardIndex - 1); - const shardEnd = shardSize * options.shardIndex; + const shardSize = Math.ceil(tests.length / shardCount); + const shardStart = shardSize * (shardIndex - 1); + const shardEnd = shardSize * shardIndex; return [...tests] .sort((a, b) => (a.path > b.path ? 1 : -1)) diff --git a/website/versioned_docs/version-28.0/Configuration.md b/website/versioned_docs/version-28.0/Configuration.md index bee140ad87d4..719550361156 100644 --- a/website/versioned_docs/version-28.0/Configuration.md +++ b/website/versioned_docs/version-28.0/Configuration.md @@ -1553,9 +1553,9 @@ class CustomSequencer extends Sequencer { * Sharding is applied before sorting */ shard(tests, {shardIndex, shardCount}) { - const shardSize = Math.ceil(tests.length / options.shardCount); - const shardStart = shardSize * (options.shardIndex - 1); - const shardEnd = shardSize * options.shardIndex; + const shardSize = Math.ceil(tests.length / shardCount); + const shardStart = shardSize * (shardIndex - 1); + const shardEnd = shardSize * shardIndex; return [...tests] .sort((a, b) => (a.path > b.path ? 1 : -1)) diff --git a/website/versioned_docs/version-28.1/Configuration.md b/website/versioned_docs/version-28.1/Configuration.md index 6fa8810046e8..2fb7d6f518f1 100644 --- a/website/versioned_docs/version-28.1/Configuration.md +++ b/website/versioned_docs/version-28.1/Configuration.md @@ -1557,9 +1557,9 @@ class CustomSequencer extends Sequencer { * Sharding is applied before sorting */ shard(tests, {shardIndex, shardCount}) { - const shardSize = Math.ceil(tests.length / options.shardCount); - const shardStart = shardSize * (options.shardIndex - 1); - const shardEnd = shardSize * options.shardIndex; + const shardSize = Math.ceil(tests.length / shardCount); + const shardStart = shardSize * (shardIndex - 1); + const shardEnd = shardSize * shardIndex; return [...tests] .sort((a, b) => (a.path > b.path ? 1 : -1))