From 2a37b2ec11c46fc87dae084bc0a7659b198311aa Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Thu, 22 Apr 2021 22:58:52 +0200 Subject: Mock config for tests Treat it as an external... also, deals better with the vite meta things --- jest.config.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'jest.config.json') 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$": "/test_utils/config.js", "^\\$lib(.*)$": "/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/*"], "^\\$(.*)$": "/src$1" - } + }, + "moduleFileExtensions": ["js", "svelte"] } -- cgit