Skip to content

Commit

Permalink
fix moduleNameMapper $app paths
Browse files Browse the repository at this point in the history
  • Loading branch information
braebo committed Jul 23, 2021
1 parent 88a0d55 commit b226ea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion templates/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"moduleNameMapper": {
"^\\$lib(.*)$": "<rootDir>/src/lib$1",
"^\\$app(.*)$": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"]
"^\\$app(.*)$": ["<rootDir>/.svelte-kit/dev/runtime/app$1", "<rootDir>/.svelte-kit/build/runtime/app$1"]
},
"moduleFileExtensions": ["js", "svelte"]
}

0 comments on commit b226ea8

Please sign in to comment.