forked from hman38705/socialflow-ai-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
38 lines (38 loc) · 1 KB
/
Copy pathjest.config.js
File metadata and controls
38 lines (38 loc) · 1 KB
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
36
37
38
/** @type {import('jest').Config} */
module.exports = {
projects: [
{
displayName: 'frontend',
preset: 'ts-jest',
testEnvironment: 'jsdom',
roots: ['<rootDir>/src'],
testMatch: ['**/__tests__/**/*.test.ts', '**/__tests__/**/*.test.tsx'],
setupFiles: ['<rootDir>/jest.setup.js'],
transformIgnorePatterns: [
'node_modules/(?!(@scure|@noble|@otplib|otplib)/)',
],
transform: {
'^.+\\.(ts|tsx|js)$': ['ts-jest', {
diagnostics: false,
tsconfig: {
jsx: 'react',
types: ['jest', 'node'],
esModuleInterop: true,
allowJs: true,
},
}],
},
},
'<rootDir>/backend',
{
displayName: 'services',
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/services'],
testMatch: ['**/__tests__/**/*.test.ts'],
transform: {
'^.+\\.ts$': ['ts-jest', { tsconfig: { esModuleInterop: true } }],
},
},
],
};