diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-17 12:36:06 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-17 12:36:06 +0200 |
| commit | 46ea91c724242c4c23ece224a9e321d995c330a6 (patch) | |
| tree | 73cdca387d7395a204c561f0bc7de05a236d147f /jest.config.json | |
| parent | e7f6de3d196ec1bf392056c504c2bc7b86e40ca0 (diff) | |
Add jest for testing
Diffstat (limited to 'jest.config.json')
| -rw-r--r-- | jest.config.json | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/jest.config.json b/jest.config.json new file mode 100644 index 0000000..4907484 --- /dev/null +++ b/jest.config.json @@ -0,0 +1,11 @@ +{ + "transform": { + "^.+\\.js$": "babel-jest", + "^.+\\.svelte$": "svelte-jester" + }, + "moduleNameMapper": { + "^\\$lib(.*)$": "<rootDir>/src/lib$1", + "^\\$app(.*)$": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"] + }, + "moduleFileExtensions": ["js", "svelte"] +} |