X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/a7cf03c192470cbab13edeb1aec99e0c66dede10..7b66f8a69c747932118a3e81f50c69258200d1e5:/jest.config.js?ds=inline diff --git a/jest.config.js b/jest.config.js index 6b808fc..ee9267a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,24 +1,25 @@ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ export default { - preset: "ts-jest", - transform: { - "^.+\\.svelte$": [ - "svelte-jester", - { - "preprocess": true - } - ] - }, - moduleNameMapper: { - "^\\$lib(.*)$": "/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(.*)$': '/src/lib$1', + '^\\$app(.*)$': ['.svelte/dev/runtime/app/*', '.svelte/build/runtime/app/*'] + }, + moduleFileExtensions: ['ts', 'js', 'svelte'], + globals: { + 'ts-jest': { + diagnostics: { + ignoreCodes: ['TS151001'] + } + } + } +};