aboutsummaryrefslogtreecommitdiff
path: root/jest.config.json
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-04-22 22:58:52 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-04-22 22:58:52 +0200
commit2a37b2ec11c46fc87dae084bc0a7659b198311aa (patch)
treed9c74966dad4d2bc7b034d54305c8b1df1c75d3e /jest.config.json
parent4e6be9f49b9697d9577014b3ee2b7988129823a9 (diff)
Mock config for tests
Treat it as an external... also, deals better with the vite meta things
Diffstat (limited to 'jest.config.json')
-rw-r--r--jest.config.json9
1 files changed, 4 insertions, 5 deletions
diff --git a/jest.config.json b/jest.config.json
index 46f62f4..3e47287 100644
--- a/jest.config.json
+++ b/jest.config.json
@@ -4,11 +4,10 @@
"^.+\\.svelte$": "svelte-jester"
},
"moduleNameMapper": {
+ "^\\$/config/config$": "<rootDir>/test_utils/config.js",
"^\\$lib(.*)$": "<rootDir>/src/lib$1",
- "^\\$app(.*)$": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"]
- },
- "moduleFileExtensions": ["js", "svelte"],
- "moduleNameMapper": {
+ "^\\$app(.*)$": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"],
"^\\$(.*)$": "<rootDir>/src$1"
- }
+ },
+ "moduleFileExtensions": ["js", "svelte"]
}