aboutsummaryrefslogtreecommitdiff
path: root/jest.config.js
blob: 0e21d6ba8c7c97f9cf380f11d954da0228eb4ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @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']
			}
		}
	}
};