@vitest/browser 0.30.0 → 0.30.1
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.
|
@@ -637,7 +637,7 @@ class BrowserSnapshotEnvironment {
|
|
|
637
637
|
return rpc().readFile(filepath);
|
|
638
638
|
}
|
|
639
639
|
saveSnapshotFile(filepath, snapshot) {
|
|
640
|
-
return rpc().writeFile(filepath, snapshot);
|
|
640
|
+
return rpc().writeFile(filepath, snapshot, true);
|
|
641
641
|
}
|
|
642
642
|
resolvePath(filepath) {
|
|
643
643
|
return rpc().resolveSnapshotPath(filepath);
|
|
@@ -648,8 +648,8 @@ class BrowserSnapshotEnvironment {
|
|
|
648
648
|
removeSnapshotFile(filepath) {
|
|
649
649
|
return rpc().removeFile(filepath);
|
|
650
650
|
}
|
|
651
|
-
async prepareDirectory(
|
|
652
|
-
await rpc().createDirectory(
|
|
651
|
+
async prepareDirectory(dirPath) {
|
|
652
|
+
await rpc().createDirectory(dirPath);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
globalThis.process = { env: {}, argv: [], cwd: () => "/", stdout: { write: () => {
|
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.30.
|
|
4
|
+
"version": "0.30.1",
|
|
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.5.4",
|
|
35
|
-
"@vitest/
|
|
36
|
-
"@vitest/ui": "0.30.
|
|
37
|
-
"@vitest/
|
|
38
|
-
"vitest": "0.30.
|
|
35
|
+
"@vitest/runner": "0.30.1",
|
|
36
|
+
"@vitest/ui": "0.30.1",
|
|
37
|
+
"@vitest/ws-client": "0.30.1",
|
|
38
|
+
"vitest": "0.30.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "rimraf dist && pnpm build:node && pnpm build:client",
|