]> git.r.bdr.sh - rbdr/forum/blame - jest.config.js
Use supabase
[rbdr/forum] / jest.config.js
CommitLineData
a7cf03c1
RBR
1/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2export default {
cac85db0 3 preset: 'ts-jest',
1b676677 4 collectCoverage: true,
cac85db0
RBR
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};