Add jest coverage reporters (#1051)

Summary:
I want to track that data continuously.
HTML is useful to investigate, lcov got loads of external tools that
support it and JSON is quite useful to parse and write to a DB.
Pull Request resolved: https://github.com/facebook/flipper/pull/1051

Test Plan:
```
yarn test --coverage
open coverage/index.html
```

Reviewed By: jknoxville

Differential Revision: D21228144

Pulled By: passy

fbshipit-source-id: dc6d853c84c21e941614cf7e5da0fc4fe7174564
This commit is contained in:
Pascal Hartig
2020-04-24 06:57:36 -07:00
committed by Facebook GitHub Bot
parent eb1981f9f2
commit b4a5a17d49
2 changed files with 7 additions and 1 deletions

1
desktop/.gitignore vendored
View File

@@ -3,3 +3,4 @@ node_modules/
*.tsbuildinfo
/static/defaultPlugins/index.json
/app/src/defaultPlugins/index.tsx
/coverage

View File

@@ -104,7 +104,12 @@
"^flipper-pkg$": "<rootDir>/pkg/src",
"^flipper-pkg-lib$": "<rootDir>/pkg-lib/src"
},
"clearMocks": true
"clearMocks": true,
"coverageReporters": [
"json-summary",
"lcov",
"html"
]
},
"devDependencies": {
"@babel/code-frame": "^7.8.3",