tsconfig.test.json 882 B

123456789101112131415161718192021222324252627282930313233
  1. {
  2. // This separate tsconfig is necessary because VS Code's test runner requires CommonJS modules,
  3. // while our main project uses ES Modules (ESM). This config inherits most settings from the base
  4. // tsconfig.json but overrides the module system for test files only. This doesn't affect how
  5. // tests interact with the main codebase - it only changes how the test files themselves are
  6. // compiled to make them compatible with VS Code's test runner.
  7. "extends": "./tsconfig.json",
  8. "compilerOptions": {
  9. "module": "commonjs",
  10. "moduleResolution": "node",
  11. "types": [
  12. "node",
  13. "mocha",
  14. "should",
  15. "vscode",
  16. "chai"
  17. ],
  18. "typeRoots": [
  19. "./node_modules/@types",
  20. "./src/test/types"
  21. ],
  22. "outDir": "out",
  23. "rootDir": "."
  24. },
  25. "include": [
  26. "src/**/*.test.ts"
  27. ],
  28. "exclude": [
  29. "src/test/**/*.js",
  30. "src/**/__tests__/*",
  31. "src/test/e2e/**/*.test.ts"
  32. ]
  33. }