diff --git a/CHANGELOG.md b/CHANGELOG.md index ff36bfd..8df184e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Don't worry about the order of CSS imports across modules. Refs STRWEB-110. * Remove postcss-plugins: postcss-nesting, postcss-custom-properties, postcss-color-function, postcss-calc. Add CSS variables entry point in webpack config. Refs STRWEB-111. * Support import of arbitrary text files via `?raw`. Refs STRWEB-109. +* Report test coverage. Refs STRWEB-118. ## [5.1.0](https://github.com/folio-org/stripes-webpack/tree/v5.1.0) (2024-03-12) [Full Changelog](https://github.com/folio-org/stripes-webpack/compare/v5.0.0...v5.1.0) diff --git a/package.json b/package.json index ed0d6aa..f90152b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "registry": "https://repository.folio.org/repository/npm-folio/" }, "scripts": { - "test": "mocha --opts ./test/mocha.opts './test/webpack/**/*.js'" + "test": "nyc --reporter=html --report-dir=artifacts/coverage --all mocha --opts ./test/mocha.opts './test/webpack/**/*.js'" }, "engines": { "node": ">=12.0.0" @@ -80,6 +80,7 @@ "chai": "^4.1.2", "mocha": "^6.1.3", "mocha-junit-reporter": "^1.17.0", + "nyc": "^17.1.0", "sinon": "^7.3.2", "sinon-chai": "^3.3.0", "webpack": "^5.58.1"