forked from distributeaid/distributeaid.org
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.ts
29 lines (27 loc) · 795 Bytes
/
jest.config.ts
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
29
import type { Config } from 'jest'
const config: Config = {
testEnvironment: `jsdom`,
testRegex: '.+\\.(test|spec)\\.(j|t)sx?$',
setupFilesAfterEnv: ['<rootDir>/setup-test-env.ts'],
transform: {
'^.+\\.[jt]sx?$': '<rootDir>/jest-preprocess.js',
},
moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss)$': `identity-obj-proxy`,
'^@components/(.*)$': ['<rootDir>/src/components/$1'],
'react-markdown':
'<rootDir>/node_modules/react-markdown/react-markdown.min.js',
},
testPathIgnorePatterns: [
`node_modules`,
`\\.cache`,
`<rootDir>.*/public`,
`<rootDir>.*/e2e-tests`,
],
transformIgnorePatterns: [`node_modules/(?!(gatsby)/)`],
globals: {
__PATH_PREFIX__: ``,
},
setupFiles: [`<rootDir>/loadershim.js`],
}
export default config