Quellcode durchsuchen

fix: test stuff

Sv443 vor 2 Monaten
Ursprung
Commit
94841ccaee
1 geänderte Dateien mit 14 neuen und 1 gelöschten Zeilen
  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;