Skip to content

Commit

Permalink
test: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Mar 4, 2022
1 parent fc7574d commit d524ecf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ test('works with multiple contexts', () => {
});

test('does not shard by default', () => {
const tests = sequencer.shard(toTests(['/test-a.js', '/test-ab.js']));
const tests = sequencer.shard(toTests(['/test-a.js', '/test-ab.js']), {
shardCount: 1,
shardIndex: 1,
});
expect(tests.map(test => test.path)).toEqual(['/test-a.js', '/test-ab.js']);
});

Expand Down

0 comments on commit d524ecf

Please sign in to comment.