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