Treat it as an external... also, deals better with the
vite meta things
"^.+\\.svelte$": "svelte-jester"
},
"moduleNameMapper": {
"^.+\\.svelte$": "svelte-jester"
},
"moduleNameMapper": {
+ "^\\$/config/config$": "<rootDir>/test_utils/config.js",
"^\\$lib(.*)$": "<rootDir>/src/lib$1",
"^\\$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"
"^\\$(.*)$": "<rootDir>/src$1"
+ },
+ "moduleFileExtensions": ["js", "svelte"]
--- /dev/null
+/*
+ * Mocking the configuration, since we're treating it as an external
+ */
+
+export const apollo = {
+ uri: 'http://MOCKED_CONFIG',
+ name: 'COOL_CLIENT',
+ version: '8.8.8'
+};
+
+export const version = '9.9.9';