]> git.r.bdr.sh - rbdr/forum/blob - jest.config.js
6b808fc65713cdad7c02415757e7ee50bef000c6
[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 }