diff options
| author | 2020-10-12 17:57:07 +0100 | |
|---|---|---|
| committer | 2020-10-12 17:57:07 +0100 | |
| commit | 0dfe0d81c7c9d9b4d7cbaa4f76ca8450de40a90c (patch) | |
| tree | 268f89e5bea60b45d84c2b39ee4c27c81b6ec7b6 /jest.config.js | |
| parent | Add many new tests (diff) | |
Add Jest config
Diffstat (limited to 'jest.config.js')
| -rw-r--r-- | jest.config.js | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/jest.config.js b/jest.config.js index 165e711..a126998 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,4 +3,11 @@ module.exports = {          '^.+\\.(t|j)sx?$': ['@swc/jest'],          '^.+\\.svg$': ['jest-svg-transformer']      }, +    collectCoverageFrom: [ +        "src/**/*.{js,jsx,ts,tsx}", +        "!**/node_modules/**", +    ], +    collectCoverage: true, +    coverageProvider: "v8", +    setupFilesAfterEnv: ["./src/setupTests.ts"]  } | 
