forked from MD-Creative-Production/Sentinel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.dashboard.config.js
More file actions
35 lines (35 loc) · 893 Bytes
/
Copy pathjest.dashboard.config.js
File metadata and controls
35 lines (35 loc) · 893 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
29
30
31
32
33
34
35
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jest-environment-jsdom',
rootDir: '.',
testMatch: [
'<rootDir>/apps/dashboard/**/*.spec.tsx',
'<rootDir>/apps/dashboard/**/*.spec.ts',
'<rootDir>/apps/web/**/*.spec.tsx',
'<rootDir>/apps/web/**/*.spec.ts',
],
transform: {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: {
module: 'commonjs',
jsx: 'react-jsx',
esModuleInterop: true,
strict: true,
skipLibCheck: true,
types: ['jest', 'node'],
// Treat CSS imports as any — they are mocked anyway
paths: {},
},
diagnostics: {
ignoreCodes: ['TS2882', 'TS7016'],
},
},
],
},
moduleNameMapper: {
'\\.css$': '<rootDir>/test/__mocks__/styleMock.js',
},
};