Files
Prompter/jest.config.js

19 lines
503 B
JavaScript

/** @type {import('ts-jest').JestConfigWithTsJest} **/
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\.tsx?$': ['ts-jest', {}],
},
testMatch: ['**/test/**/*.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
// Mock the vscode module since it's not available during testing
moduleNameMapper: {
'^vscode$': '<rootDir>/src/test/vscode-mock.ts'
},
};