mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
test order
This commit is contained in:
11
tests/e2e/testSequencer.js
Normal file
11
tests/e2e/testSequencer.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
Reference in New Issue
Block a user