forked from joshuef/peruse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
24 lines (24 loc) · 1.19 KB
/
jest.config.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
module.exports = {
verbose : true,
testMatch : ['**/test/**/*'],
moduleFileExtensions : ['js', 'jsx'],
setupFiles : ['raf/polyfill','<rootDir>/test/setup.js'],
testPathIgnorePatterns : ['node_modules', '<rootDir>/app/extensions'],
moduleDirectories : ['app', 'test', 'node_modules', 'app/node_modules'],
moduleNameMapper : {
"electron": "<rootDir>/mocks/electron.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/mocks/fileMock.js",
"\\.(css|scss)$": "<rootDir>/mocks/fileMock.js",
'^appPackage$' : '<rootDir>/package.json',
'^@actions(.*)$' : '<rootDir>/app/actions$1',
'^@components(.*)$' : '<rootDir>/app/components$1',
'^@containers(.*)$' : '<rootDir>/app/containers$1',
'^appConstants$' : '<rootDir>/app/constants.js',
'^@extensions(.*)$' : '<rootDir>/app/extensions$1',
'^@logger(.*)$' : '<rootDir>/app/logger$1',
'^@reducers(.*)$' : '<rootDir>/app/reducers$1',
'^@store(.*)$' : '<rootDir>/app/store',
'^@utils(.*)$' : '<rootDir>/app/utils$1'
}
};