We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d37d75c commit be80be8Copy full SHA for be80be8
1 file changed
jest-sequencer.js
@@ -14,7 +14,16 @@ class TestSequencer extends Sequencer {
14
15
sort(tests) {
16
const copyTests = [...tests];
17
- return copyTests.sort((testA, testB) => (testA.path > testB.path ? 1 : -1));
+ // return copyTests.sort((testA, testB) => (testA.path > testB.path ? 1 : -1));
18
+ return copyTests.sort((testA, testB) => {
19
+ const isAOnyx = testA.path.includes('OnyxUtils.perf-test.ts');
20
+ const isBOnyx = testB.path.includes('OnyxUtils.perf-test.ts');
21
+
22
+ if (isAOnyx && !isBOnyx) return -1;
23
+ if (!isAOnyx && isBOnyx) return 1;
24
25
+ return testA.path.localeCompare(testB.path);
26
+ });
27
}
28
29
0 commit comments