@vitest/coverage-istanbul 4.1.0-beta.5 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @vitest/coverage-istanbul
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@vitest/coverage-istanbul?color=a1b858&label=)](https://npmx.dev/package/@vitest/coverage-istanbul)
4
+
5
+ Vitest coverage provider that instruments code coverage via [istanbul](https://istanbul.js.org/).
6
+
7
+ ## Installation
8
+
9
+ After installing the package, specify `istanbul` in the `coverage.provider` field of your Vitest configuration:
10
+
11
+ ```ts
12
+ // vitest.config.ts
13
+ import { defineConfig } from 'vitest/config'
14
+
15
+ export default defineConfig({
16
+ test: {
17
+ coverage: {
18
+ provider: 'istanbul',
19
+ },
20
+ },
21
+ })
22
+ ```
23
+
24
+ Then run Vitest with coverage:
25
+
26
+ ```sh
27
+ npx vitest --coverage
28
+ ```
29
+
30
+ [GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/coverage-istanbul) | [Documentation](https://vitest.dev/guide/coverage)
package/dist/provider.js CHANGED
@@ -3543,7 +3543,7 @@ function requireIstanbulLibSourceMaps () {
3543
3543
  var istanbulLibSourceMapsExports = requireIstanbulLibSourceMaps();
3544
3544
  var libSourceMaps = /*@__PURE__*/getDefaultExportFromCjs(istanbulLibSourceMapsExports);
3545
3545
 
3546
- var version = "4.1.0-beta.5";
3546
+ var version = "4.1.0";
3547
3547
 
3548
3548
  const debug = createDebug("vitest:coverage");
3549
3549
  class IstanbulCoverageProvider extends BaseCoverageProvider {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@vitest/coverage-istanbul",
3
3
  "type": "module",
4
- "version": "4.1.0-beta.5",
4
+ "version": "4.1.0",
5
5
  "description": "Istanbul coverage provider for Vitest",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://opencollective.com/vitest",
9
- "homepage": "https://github.com/vitest-dev/vitest/tree/main/packages/coverage-istanbul#readme",
9
+ "homepage": "https://vitest.dev/guide/coverage",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/vitest-dev/vitest.git",
@@ -37,7 +37,7 @@
37
37
  "dist"
38
38
  ],
39
39
  "peerDependencies": {
40
- "vitest": "4.1.0-beta.5"
40
+ "vitest": "4.1.0"
41
41
  },
42
42
  "dependencies": {
43
43
  "@babel/core": "^7.29.0",
@@ -60,7 +60,7 @@
60
60
  "istanbul-lib-instrument": "^6.0.3",
61
61
  "istanbul-lib-source-maps": "^5.0.6",
62
62
  "pathe": "^2.0.3",
63
- "vitest": "4.1.0-beta.5"
63
+ "vitest": "4.1.0"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "premove dist && rollup -c",