From 46ea91c724242c4c23ece224a9e321d995c330a6 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sat, 17 Apr 2021 12:36:06 +0200 Subject: Add jest for testing --- jest.config.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 jest.config.json (limited to 'jest.config.json') 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(.*)$": "/src/lib$1", + "^\\$app(.*)$": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"] + }, + "moduleFileExtensions": ["js", "svelte"] +} -- cgit