Parcourir la source

fix: test stuff

Sv443 il y a 2 mois
Parent
commit
94841ccaee
1 fichiers modifiés avec 14 ajouts et 1 suppressions
  1. 14 1
      jest.config.mjs

+ 14 - 1
jest.config.mjs

@@ -4,7 +4,20 @@ const config = {
   testEnvironment: "node",
   modulePathIgnorePatterns: ["<rootDir>/out/"],
   testPathIgnorePatterns: ["node_modules/", "out/"],
-  testMatch: ["**/test/**/*.spec.ts"],
+  testMatch: ["**/test/**/*.spec.(mjs|mts|js|ts)"],
+  transform: {
+    "^.+\\.(c|m)?ts$": ["ts-jest", {
+      tsconfig: {
+        module: "NodeNext",
+        moduleResolution: "NodeNext",
+        target: "ES2018",
+        allowJs: true,
+        allowImportingTsExtensions: true,
+        allowSyntheticDefaultImports: true,
+        importHelpers: true,
+      }
+    }],
+  }
 };
 
 export default config;