-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.browser.config.js
More file actions
33 lines (33 loc) · 880 Bytes
/
Copy pathjest.browser.config.js
File metadata and controls
33 lines (33 loc) · 880 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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
roots: ['<rootDir>/tests'],
testMatch: [
'**/tests/browser/**/*.test.ts'
],
transform: {
'^.+\\.ts$': 'ts-jest',
},
setupFilesAfterEnv: ['<rootDir>/jest.browser.setup.ts'],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/**/index.ts',
],
coverageDirectory: 'coverage/browser',
coverageReporters: [
'text',
'lcov',
'html'
],
moduleNameMapping: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@core/(.*)$': '<rootDir>/src/core/$1',
'^@geometry/(.*)$': '<rootDir>/src/geometry/$1',
'^@materials/(.*)$': '<rootDir>/src/materials/$1',
'^@cameras/(.*)$': '<rootDir>/src/cameras/$1',
'^@lights/(.*)$': '<rootDir>/src/lights/$1',
'^@loaders/(.*)$': '<rootDir>/src/loaders/$1',
'^@extras/(.*)$': '<rootDir>/src/extras/$1',
},
};