From d26cd0ef49a703f904001d3f961d7fd5164024cb Mon Sep 17 00:00:00 2001 From: Daniel Rowe Date: Mon, 6 Jun 2022 21:07:24 -0400 Subject: [PATCH 1/2] testSequencer example use destructured argument --- website/versioned_docs/version-28.1/Configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) From 0eb80368d768683fa3a12c640f59157c2879ab8d Mon Sep 17 00:00:00 2001 From: Daniel Rowe Date: Tue, 7 Jun 2022 12:45:34 -0400 Subject: [PATCH 2/2] Replaced in docs and version 28.0 --- docs/Configuration.md | 6 +++--- website/versioned_docs/version-28.0/Configuration.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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))