/** @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']
+ }
+ }
+ }
+};