Add various js build configs

This commit is contained in:
Paul Merlin 2020-06-13 12:46:29 +02:00
parent f25026ba74
commit 4336c6b886
6 changed files with 78 additions and 3 deletions

View file

@ -1,11 +1,12 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
moduleFileExtensions: ['js', 'ts', 'json'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
}
verbose: true,
setupFilesAfterEnv: ['./jest.setup.js']
}