aboutsummaryrefslogtreecommitdiff
path: root/jest.config.json
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-04-17 12:36:06 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-04-17 12:36:06 +0200
commit46ea91c724242c4c23ece224a9e321d995c330a6 (patch)
tree73cdca387d7395a204c561f0bc7de05a236d147f /jest.config.json
parente7f6de3d196ec1bf392056c504c2bc7b86e40ca0 (diff)
Add jest for testing
Diffstat (limited to 'jest.config.json')
-rw-r--r--jest.config.json11
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"]
+}