jest.config.js 558 B

123456789101112131415161718192021
  1. /** @type {import('ts-jest').JestConfigWithTsJest} */
  2. module.exports = {
  3. preset: 'ts-jest',
  4. testEnvironment: 'node',
  5. moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
  6. transform: {
  7. '^.+\\.tsx?$': ['ts-jest', {
  8. tsconfig: 'tsconfig.json'
  9. }]
  10. },
  11. testMatch: ['**/__tests__/**/*.test.ts'],
  12. moduleNameMapper: {
  13. '^vscode$': '<rootDir>/node_modules/@types/vscode/index.d.ts'
  14. },
  15. setupFiles: [],
  16. globals: {
  17. 'ts-jest': {
  18. diagnostics: false
  19. }
  20. }
  21. };