Config setup for jest testing

This commit is contained in:
Ryan Gossiaux
2021-12-24 19:11:35 -08:00
parent 3b4e2048c9
commit ac826703a9
3 changed files with 13 additions and 1 deletions

8
jest.config.cjs Normal file
View File

@@ -0,0 +1,8 @@
module.exports = {
transform: {
'^.+\\.svelte$': 'svelte-jester',
'^.+\\.js$': 'babel-jest',
'^.+\\.ts$': 'ts-jest',
},
moduleFileExtensions: ['js', 'ts', 'svelte'],
}