forked from coredao-org/core-dev-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (22 loc) · 717 Bytes
/
jest.config.js
File metadata and controls
22 lines (22 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
testPathIgnorePatterns: ['./node_modules/', './.next/'],
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
],
transform: {
/* Use babel-jest to transpile tests with the next/babel preset
https://jestjs.io/docs/configuration#transform-objectstring-pathtotransformer--pathtotransformer-object */
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', {presets: ['next/babel']}],
},
transformIgnorePatterns: [
'/node_modules/',
'^.+\\.module\\.(css|sass|scss)$',
],
modulePaths: ['node_modules', '<rootDir>'],
moduleNameMapper: {
'^@core/(.*)$': 'components/core/$1',
'^@thegraph/(.*)$': 'components/the_graph/$1',
},
};