Тесты работают, TS билдится
This commit is contained in:
1 parent
e08d9757bb
commit
9f3a64d76f
36 files changed
+17901
No files matched your search
@@ -0,0 +1,13 @@
|
||||
const Sequencer = require('@jest/test-sequencer').default;
|
||||
|
||||
class CustomSequencer extends Sequencer {
|
||||
sort(tests) {
|
||||
// Test structure information
|
||||
// https://github.com/facebook/jest/blob/6b8b1404a1d9254e7d5d90a8934087a9c9899dab/packages/jest-runner/src/types.ts#L17-L21
|
||||
const copyTests = Array.from(tests);
|
||||
// @ts-ignore
|
||||
return copyTests.sort((testA, testB) => (testA.path > testB.path ? 1 : -1));
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CustomSequencer;
|
||||
@@ -0,0 +1,10 @@
|
||||
const failFast = require("jasmine-fail-fast");
|
||||
|
||||
// Добавляем нормальный fail fast
|
||||
// https://github.com/facebook/jest/issues/2867
|
||||
|
||||
//if (process.argv.includes("--bail")) {
|
||||
// @ts-ignore
|
||||
const jasmineEnv = jasmine.getEnv();
|
||||
jasmineEnv.addReporter(failFast.init());
|
||||
//}
|
||||
Whitespace-only changes.
Reference in new issue
Block a user