-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (24 loc) · 831 Bytes
/
jest.config.js
File metadata and controls
24 lines (24 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
roots: [
"<rootDir>/src"
],
testMatch: [
"**/?(*.)+(test).+(ts|tsx|js)"
],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest"
},
setupFilesAfterEnv: [
"<rootDir>/test/testSetup.ts"
],
moduleNameMapper: {
"\\.(css|less|sass|scss)$": "<rootDir>/test/__mocks__/styleMock.js",
"\\.(gif|ttf|eot|svg)$": "<rootDir>/test/__mocks__/fileMock.js",
"react-virtualized-auto-sizer": "<rootDir>/test/__mocks__/react-virtualized-auto-sizer.tsx",
"disconnect": "<rootDir>/test/__mocks__/disconnect.js",
"electron": "<rootDir>/test/__mocks__/electron.js",
"music-metadata": "<rootDir>/test/__mocks__/music-metadata.js",
"pouchdb": "<rootDir>/test/__mocks__/pouchdb.ts",
"@fortawesome/react-fontawesome": "<rootDir>/test/__mocks__/@fortawesome/react-fontawesome.tsx"
}
}