forked from Nodi3d/nodi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
37 lines (36 loc) · 835 Bytes
/
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
// process.env.NODE_ENV = null;
process.env.NODE_ENV = 'test';
module.exports = {
testEnvironment: 'jsdom',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^~/(.*)$': '<rootDir>/$1',
// '^vue$': 'vue/dist/vue.common.js'
'three/examples/jsm/*': '<rootDir>/jest/MockModule.js',
'd3-delaunay': '<rootDir>/jest/MockModule.js'
},
moduleFileExtensions: [
'ts',
'js'
// 'vue'
],
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.(vert|frag|glsl)$': 'jest-raw-loader',
'^.+\\.js$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest'
},
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json'
}
},
transformIgnorePatterns: [
'/node_modules/'
],
collectCoverage: false,
collectCoverageFrom: [
// '<rootDir>/components/**/*.vue',
// '<rootDir>/pages/**/*.vue'
]
};