From b226ea89376eb9cac2c357c4d93389b94b54489d Mon Sep 17 00:00:00 2001 From: Braden Wiggins <55504972+FractalHQ@users.noreply.github.com> Date: Fri, 23 Jul 2021 15:11:56 -0400 Subject: [PATCH] fix moduleNameMapper $app paths --- package.json | 2 +- templates/jest.config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 847c9f6..4e46a8a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@rossyman/svelte-add-jest", - "version": "1.1.3", + "version": "1.1.4", "description": "SvelteKit adder for Jest unit testing", "license": "MIT", "keywords": [ diff --git a/templates/jest.config.json b/templates/jest.config.json index 4907484..aae856e 100644 --- a/templates/jest.config.json +++ b/templates/jest.config.json @@ -5,7 +5,7 @@ }, "moduleNameMapper": { "^\\$lib(.*)$": "/src/lib$1", - "^\\$app(.*)$": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"] + "^\\$app(.*)$": ["/.svelte-kit/dev/runtime/app$1", "/.svelte-kit/build/runtime/app$1"] }, "moduleFileExtensions": ["js", "svelte"] }