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:
Hazelnoot 2025-11-11 23:13:11 -05:00
parent a777b2357b
commit d6071853ca
5 changed files with 3 additions and 2 deletions

View file

@ -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",
],

View file

@ -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",

View file

@ -36,6 +36,7 @@ export default [
ignores: [
"**/built/",
'*.*',
"**/jest.setup.*"
],
},
];