[ci] Remove jestSequencer

This was previously used for circleci parallelization but is no longer
needed.

ghstack-source-id: d8c1005e09
Pull Request resolved: https://github.com/facebook/react/pull/30500
This commit is contained in:
Lauren Tan
2024-07-29 13:04:00 -04:00
parent b54168cee3
commit 8922255a0f
2 changed files with 0 additions and 21 deletions
-2
View File
@@ -24,8 +24,6 @@ module.exports = {
},
snapshotSerializers: [require.resolve('jest-snapshot-serializer-raw')],
testSequencer: require.resolve('./jestSequencer'),
testEnvironment: 'jsdom',
testRunner: 'jest-circus/runner',
-19
View File
@@ -1,19 +0,0 @@
'use strict';
const Sequencer = require('@jest/test-sequencer').default;
class CustomSequencer extends Sequencer {
sort(tests) {
if (process.env.CIRCLE_NODE_TOTAL) {
// In CI, parallelize tests across multiple tasks.
const nodeTotal = parseInt(process.env.CIRCLE_NODE_TOTAL, 10);
const nodeIndex = parseInt(process.env.CIRCLE_NODE_INDEX, 10);
tests = tests
.sort((a, b) => (a.path < b.path ? -1 : 1))
.filter((_, i) => i % nodeTotal === nodeIndex);
}
return tests;
}
}
module.exports = CustomSequencer;