-
Notifications
You must be signed in to change notification settings - Fork 194
/
jest.config.js
28 lines (28 loc) · 750 Bytes
/
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
25
26
27
28
module.exports = {
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
],
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
testPathIgnorePatterns: [
'/node_modules/',
'/.next/',
'/.vercel/',
'/cypress/',
],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', {presets: ['next/babel']}],
'^.+\\.css$': '<rootDir>/config/jest/cssTransform.js',
},
transformIgnorePatterns: [
'/node_modules/',
'node_modules/(?!@mdx-js|(?!deck.gl)|ng-dynamic)',
'^.+\\.module\\.(css|sass|scss)$',
],
moduleNameMapper: {
'^@/(.*)': '<rootDir>/src/$1',
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
},
moduleDirectories: ['node_modules', 'src'],
}