@vitest/browser 0.19.1 → 0.20.2
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/client/assets/{index.6fe36f2b.js → index.85f8aabb.js} +16 -1
- package/dist/client/index.html +1 -1
- package/package.json +3 -3
- package/dist/client/__vitest__/assets/index.0e6de9cd.js +0 -33
- package/dist/client/__vitest__/assets/index.dea02184.css +0 -1
- package/dist/client/__vitest__/bg.png +0 -0
- package/dist/client/__vitest__/favicon.svg +0 -5
- package/dist/client/__vitest__/index.html +0 -26
|
@@ -218,6 +218,7 @@ class StateManager {
|
|
|
218
218
|
constructor() {
|
|
219
219
|
this.filesMap = /* @__PURE__ */ new Map();
|
|
220
220
|
this.pathsSet = /* @__PURE__ */ new Set();
|
|
221
|
+
this.collectingPromise = void 0;
|
|
221
222
|
this.idMap = /* @__PURE__ */ new Map();
|
|
222
223
|
this.taskFileMap = /* @__PURE__ */ new WeakMap();
|
|
223
224
|
this.errorsSet = /* @__PURE__ */ new Set();
|
|
@@ -232,7 +233,21 @@ class StateManager {
|
|
|
232
233
|
getUnhandledErrors() {
|
|
233
234
|
return Array.from(this.errorsSet.values());
|
|
234
235
|
}
|
|
235
|
-
|
|
236
|
+
startCollectingPaths() {
|
|
237
|
+
let _resolve;
|
|
238
|
+
const promise = new Promise((resolve) => {
|
|
239
|
+
_resolve = resolve;
|
|
240
|
+
});
|
|
241
|
+
this.collectingPromise = { promise, resolve: _resolve };
|
|
242
|
+
}
|
|
243
|
+
finishCollectingPaths() {
|
|
244
|
+
var _a;
|
|
245
|
+
(_a = this.collectingPromise) == null ? void 0 : _a.resolve();
|
|
246
|
+
this.collectingPromise = void 0;
|
|
247
|
+
}
|
|
248
|
+
async getPaths() {
|
|
249
|
+
var _a;
|
|
250
|
+
await ((_a = this.collectingPromise) == null ? void 0 : _a.promise);
|
|
236
251
|
return Array.from(this.pathsSet);
|
|
237
252
|
}
|
|
238
253
|
getFiles(keys2) {
|
package/dist/client/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.2",
|
|
5
5
|
"description": "Browser running for Vitest",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/ws": "^8.2.2",
|
|
35
|
-
"@vitest/ws-client": "0.
|
|
35
|
+
"@vitest/ws-client": "0.20.2",
|
|
36
36
|
"picocolors": "^1.0.0",
|
|
37
37
|
"rollup": "^2.67.2",
|
|
38
|
-
"vitest": "0.
|
|
38
|
+
"vitest": "0.20.2"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "rimraf dist && pnpm build:node && pnpm build:client && pnpm copy",
|