Add support for svelte-inline-compile to jest

This commit is contained in:
Ryan Gossiaux
2021-12-30 08:49:09 -10:00
parent a9a0fd3109
commit 3068c88f8c
4 changed files with 11 additions and 1 deletions

View File

@@ -10,4 +10,10 @@ module.exports = {
moduleNameMapper: {
"\\$lib/(.+)$": "<rootDir>/src/lib/$1",
},
globals: {
"ts-jest": {
babelConfig: true,
useESM: true,
}
}
};