Created
March 22, 2020 13:34
-
-
Save MufidJamaluddin/37691cc2a92f75daaf70b3c7d8205722 to your computer and use it in GitHub Desktop.
Konfigurasi Jest!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| "roots": [ | |
| "./src" | |
| ], | |
| "testMatch": [ | |
| "**/__tests__/**/*.+(ts|tsx|js)", | |
| "**/?(*.)+(spec|test).+(ts|tsx|js)" | |
| ], | |
| "transform": { | |
| "^.+\\.(ts|tsx)$": "ts-jest", | |
| "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "./assetTransformer.js", | |
| "^.+\\.(css|sass|less)$": "./assetTransformer.js" | |
| }, | |
| "coverageThreshold": { | |
| "global": { | |
| "branches": 50, | |
| "functions": 50, | |
| "lines": 80, | |
| "statements": -10 | |
| } | |
| }, | |
| "coverageReporters":[ | |
| "cobertura" | |
| ], | |
| "coverageDirectory":"./../../test_results/UITests/" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment