Skip to content

Commit 5cbd1f4

Browse files
committed
Merge branch 'develop' into tadzik/dep-updates
2 parents 4efd49e + 55d8e65 commit 5cbd1f4

File tree

4 files changed

+658
-180
lines changed

4 files changed

+658
-180
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ lib-cov
2121

2222
# Coverage directory used by tools like istanbul
2323
coverage
24+
.nyc_output
2425

2526
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2627
.grunt

changelog.d/777.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a way to measure test coverage.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:app": "tsc --build",
1414
"build:widget": "vite build --config widget/vite.config.ts",
1515
"test": "yarn test:unit && yarn test:integration",
16+
"test:coverage": "nyc --reporter=text --reporter=html mocha --exit --reporter list --ui bdd --require ts-node/register --recursive tests/*/*.ts",
1617
"test:unit": "mocha --require ts-node/register --recursive tests/unit/*.ts",
1718
"test:integration": "mocha --exit --reporter list --ui bdd --require ts-node/register --recursive tests/integration/*.ts",
1819
"test:postgres": "SLACKBRIDGE_TEST_ENABLEPG=yes mocha --reporter list --ui bdd --require ts-node/register --recursive tests/integration/PgDatastoreTest.ts",
@@ -88,6 +89,7 @@
8889
"mocha": "^10.0.0",
8990
"postcss": "^8.4.38",
9091
"prom-client": "^15.1.0",
92+
"nyc": "^15.1.0",
9193
"source-map-support": "^0.5.19",
9294
"tailwindcss": "^3.4.1",
9395
"ts-node": "^10.9.2",

0 commit comments

Comments
 (0)