]> git.r.bdr.sh - rbdr/forum/blob - jest.config.js
0e21d6ba8c7c97f9cf380f11d954da0228eb4ae5
[rbdr/forum] / jest.config.js
1 /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 export default {
3 preset: 'ts-jest',
4 transform: {
5 '^.+\\.svelte$': [
6 'svelte-jester',
7 {
8 preprocess: true
9 }
10 ]
11 },
12 moduleNameMapper: {
13 '^\\$lib(.*)$': '<rootDir>/src/lib$1',
14 '^\\$app(.*)$': ['.svelte/dev/runtime/app/*', '.svelte/build/runtime/app/*']
15 },
16 moduleFileExtensions: ['ts', 'js', 'svelte'],
17 globals: {
18 'ts-jest': {
19 diagnostics: {
20 ignoreCodes: ['TS151001']
21 }
22 }
23 }
24 };