forked from intellism/vscode-comment-translate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
19 lines (19 loc) · 729 Bytes
/
Copy pathjest.config.js
File metadata and controls
19 lines (19 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
module.exports = {
// We don't want any other mocks from other places impacting this.
roots: [path.join(__dirname, 'test', 'non-extension')],
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node','wasm'],
setupFiles: ['./test/setup.ts'],
testMatch: [path.join(__dirname, 'test/non-extension/**/*.test.ts')],
transformIgnorePatterns: [
'node_modules/(?!(got)/)', // 允许 Jest 转换 got 模块
],
// setupFilesAfterEnv: ['jest-mock-vscode'],
collectCoverage: true,
};