-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (26 loc) · 656 Bytes
/
jest.config.js
File metadata and controls
28 lines (26 loc) · 656 Bytes
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
// @ts-check
/** @typedef {import('ts-jest').JestConfigWithTsJest} JestConfig */
/** @type {JestConfig} */
const config = {
collectCoverage: true,
coveragePathIgnorePatterns: ['<rootDir>/src/features/editor/examples/'],
moduleNameMapper: {
'^@/(.*)': '<rootDir>/src/$1',
'(.+)\\?raw$': '$1',
},
snapshotFormat: {
escapeString: true,
},
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/__tests__/**/*.test.ts?(x)'],
transform: {
'\\.tsx?$': [
'ts-jest',
{
diagnostics: { ignoreCodes: ['TS151001'] },
},
],
'\\.asm$': '<rootDir>/__tests__/rawTransformer.js',
},
}
export default config