Тесты работают, TS билдится

This commit is contained in:
Nikita Dezzpil Orlov committed 2021-09-29 17:11:49 +03:00
1 parent e08d9757bb
commit 9f3a64d76f
36 files changed
+17901

No files matched your search

+13
View File
@@ -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;
+10
View File
@@ -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());
//}
View File
Whitespace-only changes.