forked from ChurchApps/FreeShow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
55 lines (52 loc) · 2.06 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// module.exports = {
// // transform: {
// // "^.+\\.svelte$": "svelte-jester",
// // "^.+\\.(t|j)sx?$": "ts-jest",
// // },
// transform: {
// "^.+\\.svelte$": ["svelte-jester", { preprocess: "./svelte.config.test.cjs" }],
// "^.+\\.ts$": "ts-jest",
// "^.+\\.js$": "ts-jest",
// },
// testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
// moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "svelte"],
// transformIgnorePatterns: ["node_modules/?!*"],
// }
// module.exports = {
// transform: {
// "^.+\\.svelte$": ["svelte-jester", { preprocess: "./svelte.config.test.cjs" }],
// "^.+\\.ts$": "ts-jest",
// "^.+\\.js$": "ts-jest",
// },
// moduleFileExtensions: ["js", "ts", "svelte"],
// moduleNameMapper: {
// "^\\$lib(.*)$": "src/lib$1",
// "^\\$app(.*)$": [".svelte-kit/dev/runtime/app$1", ".svelte-kit/build/runtime/app$1"],
// },
// // testRegex: "(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
// // collectCoverageFrom: ["src/**/*.{ts,tsx,svelte,js,jsx}"],
// // setupFilesAfterEnv: ["jest-setup.ts"],
// // transformIgnorePatterns: ["/node_modules/(?!@vimeo|@vimeo/player)"],
// transformIgnorePatterns: [
// "/node_modules/",
// "src/frontend/components/drawer/player/Vimeo.svelte",
// "src/frontend/components/system/Player.svelte",
// "src/frontend/components/output/MediaOutput.svelte",
// "src/frontend/components/output/Output.svelte",
// "src/frontend/components/draw/Slide.svelte",
// "src/frontend/App.svelte",
// "node_modules/?!(svelte-routing)",
// ],
// }
module.exports = {
transform: {
// "^.+\\.(t|j)sx?$": ["ts-jest", "/tsconfig.svelte.json"],
"^.+\\.(t|j)sx?$": "ts-jest",
"^.+\\.svelte$": ["svelte-jester", { preprocess: "./svelte.config.test.cjs" }],
},
testEnvironment: "node",
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
transformIgnorePatterns: ["/node_modules/"],
// , "src/frontend/components/drawer/player/Vimeo.svelte"
}