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:
committed by
Facebook GitHub Bot
parent
eb1981f9f2
commit
b4a5a17d49
1
desktop/.gitignore
vendored
1
desktop/.gitignore
vendored
@@ -3,3 +3,4 @@ node_modules/
|
|||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
/static/defaultPlugins/index.json
|
/static/defaultPlugins/index.json
|
||||||
/app/src/defaultPlugins/index.tsx
|
/app/src/defaultPlugins/index.tsx
|
||||||
|
/coverage
|
||||||
|
|||||||
@@ -104,7 +104,12 @@
|
|||||||
"^flipper-pkg$": "<rootDir>/pkg/src",
|
"^flipper-pkg$": "<rootDir>/pkg/src",
|
||||||
"^flipper-pkg-lib$": "<rootDir>/pkg-lib/src"
|
"^flipper-pkg-lib$": "<rootDir>/pkg-lib/src"
|
||||||
},
|
},
|
||||||
"clearMocks": true
|
"clearMocks": true,
|
||||||
|
"coverageReporters": [
|
||||||
|
"json-summary",
|
||||||
|
"lcov",
|
||||||
|
"html"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/code-frame": "^7.8.3",
|
"@babel/code-frame": "^7.8.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user