From 55d5c58e056018cc7388ab85f0d967f5a84548a0 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Fri, 8 Jun 2018 11:32:27 -0700 Subject: [PATCH] Add a `coverage` package script (#365) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index f19a2f4..19ab4fc 100644 --- a/package.json +++ b/package.json @@ -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"