jest.config.mjs 602 B

1234567891011121314151617181920212223
  1. /** @type {import("jest").Config} */
  2. const config = {
  3. preset: "ts-jest",
  4. testEnvironment: "node",
  5. modulePathIgnorePatterns: ["<rootDir>/out/"],
  6. testPathIgnorePatterns: ["node_modules/", "out/"],
  7. testMatch: ["**/test/**/*.spec.(mjs|mts|js|ts)"],
  8. transform: {
  9. "^.+\\.(c|m)?ts$": ["ts-jest", {
  10. tsconfig: {
  11. module: "NodeNext",
  12. moduleResolution: "NodeNext",
  13. target: "ES2018",
  14. allowJs: true,
  15. allowImportingTsExtensions: true,
  16. allowSyntheticDefaultImports: true,
  17. importHelpers: true,
  18. }
  19. }],
  20. }
  21. };
  22. export default config;