Skip to content

Instantly share code, notes, and snippets.

@MufidJamaluddin
Created March 22, 2020 13:34
Show Gist options
  • Save MufidJamaluddin/37691cc2a92f75daaf70b3c7d8205722 to your computer and use it in GitHub Desktop.
Save MufidJamaluddin/37691cc2a92f75daaf70b3c7d8205722 to your computer and use it in GitHub Desktop.
Konfigurasi Jest!
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