-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathjest.config.js
57 lines (57 loc) · 1.86 KB
/
jest.config.js
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = {
preset: 'ts-jest',
testEnvironment: './jest/test_environment.js',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testPathIgnorePatterns: [
'/node_modules/',
'/temp/',
'/lib/',
'/dist/',
'/playwright/',
'/__arbitraries__/',
'/__tests__/setPrettyPrint',
'/docker/services/',
],
coveragePathIgnorePatterns: [
'/node_modules/',
'/temp/',
'/lib/',
'/dist/',
'/playwright/',
'/__arbitraries__/',
'/__tests__/setPrettyPrint',
'/docker/services/',
],
watchPathIgnorePatterns: ['/node_modules/', '/docker\\/services/'],
modulePathIgnorePatterns: ['/node_modules/', '/docker/services/'],
setupFiles: ['fake-indexeddb/auto'],
setupFilesAfterEnv: ['<rootDir>/jest/jest-setup.ts'],
transformIgnorePatterns: [
'/node_modules/\\.pnpm/(?!livekit-server-sdk|@livekit\\+protocol|camelcase-keys|map-obj|camelcase|quick-lru).+\\.js$',
],
moduleNameMapper: {
'^aux-common/(.*)$': '<rootDir>/src/aux-common/$1',
'^@casual-simulation/three/examples/js/renderers/CSS3DRenderer$':
'<rootDir>/__mocks__/CSS3DRendererMock.js',
'^three$':
'<rootDir>/src/aux-server/node_modules/@casual-simulation/three',
'^esbuild-wasm/esbuild.wasm\\?url$':
'<rootDir>/__mocks__/esbuild.wasm.js',
'^aux-jest-matchers$': '<rootDir>/jest/jest-matchers.ts',
'^@simplewebauthn/browser$':
'<rootDir>/__mocks__/@simplewebauthn/browser.js',
},
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'tsconfig.test.json',
},
],
'^.+\\.(js|jsx)$': 'babel-jest',
},
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
};