/** @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$': '/src/test/vscode-mock.ts' }, };