@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(filepath) {
652
- await rpc().createDirectory(filepath);
651
+ async prepareDirectory(dirPath) {
652
+ await rpc().createDirectory(dirPath);
653
653
  }
654
654
  }
655
655
  globalThis.process = { env: {}, argv: [], cwd: () => "/", stdout: { write: () => {
@@ -21,7 +21,7 @@
21
21
  border: none;
22
22
  }
23
23
  </style>
24
- <script type="module" crossorigin src="/assets/index-b8629a79.js"></script>
24
+ <script type="module" crossorigin src="/assets/index-8a9c2d7a.js"></script>
25
25
  </head>
26
26
  <body>
27
27
  <iframe id="vitest-ui" src=""></iframe>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/browser",
3
3
  "type": "module",
4
- "version": "0.30.0",
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/ws-client": "0.30.0",
36
- "@vitest/ui": "0.30.0",
37
- "@vitest/runner": "0.30.0",
38
- "vitest": "0.30.0"
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",