fix TS errors when checking unit tests
(it was loading the setup files, then following the imports into "built" directory. as those are compiled JS, it produced lots of type errors.)
This commit is contained in:
parent
a777b2357b
commit
d6071853ca
5 changed files with 3 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ import base from './jest.config.common.ts';
|
|||
export default {
|
||||
...base,
|
||||
globalSetup: "<rootDir>/built-test/entry.js",
|
||||
setupFilesAfterEnv: ["<rootDir>/test/jest.setup.e2e.ts"],
|
||||
setupFilesAfterEnv: ["<rootDir>/test/jest.setup.e2e.mjs"],
|
||||
testMatch: [
|
||||
"<rootDir>/test/e2e/**/*.ts",
|
||||
],
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import base from './jest.config.common.ts';
|
|||
|
||||
export default {
|
||||
...base,
|
||||
globalSetup: '<rootDir>/test/jest.setup.unit.ts',
|
||||
globalSetup: '<rootDir>/test/jest.setup.unit.mjs',
|
||||
testMatch: [
|
||||
"<rootDir>/test/unit/**/*.ts",
|
||||
"<rootDir>/src/**/*.test.ts",
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ export default [
|
|||
ignores: [
|
||||
"**/built/",
|
||||
'*.*',
|
||||
"**/jest.setup.*"
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue