Open History to see the last commit
1// common project configuration used by the other configs
2β
3const path = require('path')
4β
5module.exports = {
6 rootDir: path.resolve(__dirname, '..'),
7 moduleDirectories: [
8 'node_modules',
9 path.resolve(__dirname, '../src'),
10 'shared',
11 __dirname,
12 ],
13 testPathIgnorePatterns: ['<rootDir>/server/'],
14 moduleNameMapper: {
15 // module must come first
16 '\\.module\\.css$': 'identity-obj-proxy',
17 '\\.css$': require.resolve('./style-mock.js'),
18 // can also map files that are loaded by webpack with the file-loader
19 },
20 watchPlugins: [
21 'jest-watch-typeahead/filename',
22 'jest-watch-typeahead/testname',
23 'jest-watch-select-projects',
24 ],
25}