]> git.r.bdr.sh - rbdr/forum/blobdiff - jest.config.js
Remove outdated docs
[rbdr/forum] / jest.config.js
index 6b808fc65713cdad7c02415757e7ee50bef000c6..ee9267a3359d435c21cd21b9b87c051c1bad4378 100644 (file)
@@ -1,24 +1,25 @@
 /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
 export default {
 /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
 export default {
-  preset: "ts-jest",
-  transform: {
-    "^.+\\.svelte$": [
-      "svelte-jester",
-      {
-        "preprocess": true
-      }
-    ]
-  },
-  moduleNameMapper: {
-    "^\\$lib(.*)$": "<rootDir>/src/lib$1",
-    "^\\$app(.*)$": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"]
-  },
-  moduleFileExtensions: ["ts", "js", "svelte"],
-  globals: {
-    'ts-jest': {
-      diagnostics: {
-        ignoreCodes: [ 'TS151001' ],
-      },
-    },
-  },
-}
+       preset: 'ts-jest',
+  collectCoverage: true,
+       transform: {
+               '^.+\\.svelte$': [
+                       'svelte-jester',
+                       {
+                               preprocess: true
+                       }
+               ]
+       },
+       moduleNameMapper: {
+               '^\\$lib(.*)$': '<rootDir>/src/lib$1',
+               '^\\$app(.*)$': ['.svelte/dev/runtime/app/*', '.svelte/build/runtime/app/*']
+       },
+       moduleFileExtensions: ['ts', 'js', 'svelte'],
+       globals: {
+               'ts-jest': {
+                       diagnostics: {
+                               ignoreCodes: ['TS151001']
+                       }
+               }
+       }
+};