-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathjest.config.json
38 lines (38 loc) · 1.24 KB
/
jest.config.json
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
36
37
38
{
"setupTestFrameworkScriptFile": "<rootDir>/test/setupTests.ts",
"coverageDirectory": "<rootDir>/coverage",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"testMatch": [
"<rootDir>/test/**/__tests__/**/*.ts?(x)",
"<rootDir>/test/**/?(*.)(spec|test).ts?(x)"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"\\.(css|less|sass|scss)$": "<rootDir>/__mocks__/styleMock.js",
"\\.tsx?$": "ts-jest"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$"
],
"collectCoverageFrom": [
"<rootDir>/packages/**/*.{tsx,ts}",
"!<rootDir>/packages/**/*.d.{tsx,ts}"
],
"moduleNameMapper": {
"^rcre$": "<rootDir>/packages/rcre/src/index.tsx",
"^rcre-runtime$": "<rootDir>/packages/rcre-runtime/src/index.ts",
"^rcre-test-tools$": "<rootDir>/packages/rcre-test-tools/src/index.tsx",
"^rcre-runtime-syntax-transform$": "<rootDir>/packages/rcre-runtime-syntax-transform/src/index.ts",
"^rcre-syntax-jsx$": "<rootDir>/packages/rcre-syntax-jsx/src/index.tsx"
},
"globals": {
"__VERSION__": "0.1.0"
}
}