mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
38 lines
726 B
JavaScript
38 lines
726 B
JavaScript
const tsConfig = require('./tsconfig');
|
|
|
|
module.exports = {
|
|
testEnvironment: "jsdom",
|
|
testRunner: "jest-jasmine2",
|
|
setupFiles: [
|
|
"jest-webextension-mock"
|
|
],
|
|
setupFilesAfterEnv: [
|
|
"./e2e_tests/failfast.js"
|
|
],
|
|
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
transform: {
|
|
"^.+\\.tsx?$": [
|
|
"ts-jest",
|
|
{
|
|
tsconfig: {
|
|
...tsConfig.compilerOptions,
|
|
types: ["jest", "node", "@types/firefox-webext-browser"]
|
|
},
|
|
diagnostics: {
|
|
ignoreCodes: [151001]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
moduleNameMapper: {
|
|
"@src/(.*)": "<rootDir>/src/$1"
|
|
},
|
|
moduleFileExtensions: [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"json"
|
|
],
|
|
};
|