forked from WorldBrain/Memex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jest-config.json
31 lines (31 loc) · 1.26 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
{
"globals": {
"ts-jest": {
"tsConfigFile": "tsconfig.jest.json"
},
"browser": {}
},
"testMatch": ["<rootDir>/src/**/*.test.(js|jsx|ts|tsx)"],
"rootDir": ".",
"transform": {
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest"
},
"modulePaths": ["<rootDir>"],
"moduleNameMapper": {
"\\.(css|less)$": "identity-obj-proxy",
"^@worldbrain/storex$": "<rootDir>/external/@worldbrain/storex/ts",
"^@worldbrain/storex/lib/(.*)": "<rootDir>/external/@worldbrain/storex/ts/$1",
"^@worldbrain/storex-backend-dexie$": "<rootDir>/external/@worldbrain/storex-backend-dexie/ts",
"^@worldbrain/storex-backend-dexie/lib/(.*)": "<rootDir>/external/@worldbrain/storex-backend-dexie/ts/$1",
"^@worldbrain/memex-stemmer$": "<rootDir>/external/@worldbrain/memex-stemmer/ts"
},
"moduleFileExtensions": ["js", "jsx", "ts", "tsx"],
"setupFiles": ["jest-webextension-mock", "./setupJest.js"],
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react",
"<rootDir>/node_modules/react-dom",
"<rootDir>/node_modules/react-addons-test-utils",
"<rootDir>/node_modules/fbjs"
]
}