forked from infernojs/inferno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config-nodom.js
35 lines (35 loc) · 1.02 KB
/
jest.config-nodom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
collectCoverageFrom: [
"packages/*/src/**/*.ts",
"!**/*.ts.js",
"!**/inferno-utils/**/*",
"!**/inferno-router/**/utils.ts",
],
coverageDirectory: "coverage",
coverageReporters: ["html", "lcov", "text"],
globals: {
usingJSDOM: true,
usingJest: true
},
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
moduleNameMapper: {
"^inferno-router/utils": "<rootDir>/packages/inferno-router/src/utils",
"^inferno(.*?)$": "<rootDir>/packages/inferno$1/src/index.ts",
"mobx": "<rootDir>/node_modules/mobx"
},
rootDir: __dirname,
setupFiles: [],
testMatch: [
"<rootDir>/packages/*/__tests__/**/*spec.server-nodom.@(js|ts)?(x)"
],
testPathIgnorePatterns: [
"<rootDir>/packages/inferno/__tests__/transition.spec.jsx",
],
transform: {
"^.+\\.jsx?$": "<rootDir>/jest.babel.transform.js",
"^.+\\.tsx?$": "<rootDir>/jest.ts.transform.js"
},
testEnvironment: "node",
testRunner: "jest-jasmine2",
reporters: [["jest-silent-reporter", { "useDots": true }]]
};