Add a coverage package script (#365)

Summary:
We’re not mandating anything about coverage right now, but by making it
easier to track coverage perhaps people will organically become more
motivated to write good tests.

Test Plan:
Run `yarn coverage`, and then open `coverage/lcov-report/index.html`.

wchargin-branch: coverage
This commit is contained in:
William Chargin 2018-06-08 11:32:27 -07:00 committed by GitHub
parent 4a70db0db1
commit 55d5c58e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@
"backend": "node scripts/backend.js",
"test": "node scripts/test.js --env=jsdom",
"ci-test": "CI=1 npm run test",
"coverage": "npm run test -- --coverage",
"flow": "flow",
"lint": "eslint src config --max-warnings 0",
"travis": "node ./config/travis.js"