@vitest/coverage-istanbul 3.2.2 → 3.2.4
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/dist/provider.js +3 -2
- package/package.json +3 -3
package/dist/provider.js
CHANGED
@@ -10,6 +10,7 @@ import { parseModule } from 'magicast';
|
|
10
10
|
import TestExclude from 'test-exclude';
|
11
11
|
import c from 'tinyrainbow';
|
12
12
|
import { BaseCoverageProvider } from 'vitest/coverage';
|
13
|
+
import { isCSSRequest } from 'vitest/node';
|
13
14
|
import { C as COVERAGE_STORE_KEY } from './constants-BCJfMgEg.js';
|
14
15
|
|
15
16
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
@@ -107,7 +108,7 @@ const isAbsolute = function(p) {
|
|
107
108
|
return _IS_ABSOLUTE_RE.test(p);
|
108
109
|
};
|
109
110
|
|
110
|
-
var version = "3.2.
|
111
|
+
var version = "3.2.4";
|
111
112
|
|
112
113
|
const debug = createDebug("vitest:coverage");
|
113
114
|
class IstanbulCoverageProvider extends BaseCoverageProvider {
|
@@ -142,7 +143,7 @@ class IstanbulCoverageProvider extends BaseCoverageProvider {
|
|
142
143
|
// Istanbul/babel cannot instrument CSS - e.g. Vue imports end up here.
|
143
144
|
// File extension itself is .vue, but it contains CSS.
|
144
145
|
// e.g. "Example.vue?vue&type=style&index=0&scoped=f7f04e08&lang.css"
|
145
|
-
if (id
|
146
|
+
if (isCSSRequest(id)) {
|
146
147
|
return;
|
147
148
|
}
|
148
149
|
if (!this.testExclude.shouldInstrument(removeQueryParameters(id))) {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/coverage-istanbul",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.2.
|
4
|
+
"version": "3.2.4",
|
5
5
|
"description": "Istanbul coverage provider for Vitest",
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
7
7
|
"license": "MIT",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"dist"
|
38
38
|
],
|
39
39
|
"peerDependencies": {
|
40
|
-
"vitest": "3.2.
|
40
|
+
"vitest": "3.2.4"
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
43
|
"@istanbuljs/schema": "^0.1.3",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"@types/istanbul-reports": "^3.0.4",
|
61
61
|
"@types/test-exclude": "^6.0.2",
|
62
62
|
"pathe": "^2.0.3",
|
63
|
-
"vitest": "3.2.
|
63
|
+
"vitest": "3.2.4"
|
64
64
|
},
|
65
65
|
"scripts": {
|
66
66
|
"build": "rimraf dist && rollup -c",
|