-
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathjest.config.js
More file actions
20 lines (20 loc) · 765 Bytes
/
jest.config.js
File metadata and controls
20 lines (20 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = {
verbose: true,
// runner: "@kayahr/jest-electron-runner/main", // deprecated?
testEnvironment: 'jsdom',//'@kayahr/jest-electron-runner/environment',
moduleNameMapper: {
// "collectCoverage": true,
electron: '<rootDir>/__mocks__/electronMock.js',
'\\.(css|less|sass|scss)$': '<rootDir>/__mocks__/styleMocks.js',
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/test/__mocks__/fileMock.js',
'^dexie$': '<rootDir>/node_modules/dexie'
},
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/test/__tests__/utils/reduxTestingUtils.tsx',
],
collectCoverage: true,
coverageDirectory: './test/coverage/jest-coverage',
coverageReporters: ['json', 'text', 'html'],
resolver: null,
};