mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 13:09:34 +00:00
12 lines
380 B
JavaScript
12 lines
380 B
JavaScript
const Sequencer = require("@jest/test-sequencer").default;
|
|
|
|
class CustomSequencer extends Sequencer {
|
|
sort(tests) {
|
|
let copyTests = Array.from(tests);
|
|
copyTests = copyTests.sort((testA, testB) => (testA.path > testB.path ? -1 : 1));
|
|
return (copyTests = copyTests.sort((testA, testB) => (testA.path.includes("/modules/") ? 1 : -1)));
|
|
}
|
|
}
|
|
|
|
module.exports = CustomSequencer;
|