@vitest/browser 2.1.5 → 2.2.0-beta.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.
- package/dist/index.js +5 -3
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { WebSocketServer } from 'ws';
|
|
|
16
16
|
import { parseErrorStacktrace, parseStacktrace } from '@vitest/utils/source-map';
|
|
17
17
|
import * as nodeos from 'node:os';
|
|
18
18
|
|
|
19
|
-
var version = "2.1
|
|
19
|
+
var version = "2.2.0-beta.1";
|
|
20
20
|
|
|
21
21
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
22
22
|
function normalizeWindowsPath(input = "") {
|
|
@@ -1633,7 +1633,7 @@ var BrowserPlugin = (browserServer, base = "/") => {
|
|
|
1633
1633
|
"msw",
|
|
1634
1634
|
"msw/browser"
|
|
1635
1635
|
];
|
|
1636
|
-
if (project.config.diff) {
|
|
1636
|
+
if (typeof project.config.diff === "string") {
|
|
1637
1637
|
entries.push(project.config.diff);
|
|
1638
1638
|
}
|
|
1639
1639
|
if (project.ctx.coverageProvider) {
|
|
@@ -2166,7 +2166,9 @@ function setupBrowserRpc(server) {
|
|
|
2166
2166
|
return ctx.report("onUserConsoleLog", log);
|
|
2167
2167
|
},
|
|
2168
2168
|
resolveSnapshotPath(testPath) {
|
|
2169
|
-
return ctx.snapshot.resolvePath(testPath
|
|
2169
|
+
return ctx.snapshot.resolvePath(testPath, {
|
|
2170
|
+
config: project.getSerializableConfig()
|
|
2171
|
+
});
|
|
2170
2172
|
},
|
|
2171
2173
|
resolveSnapshotRawPath(testPath, rawPath) {
|
|
2172
2174
|
return ctx.snapshot.resolveRawPath(testPath, rawPath);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1
|
|
4
|
+
"version": "2.2.0-beta.1",
|
|
5
5
|
"description": "Browser running for Vitest",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"playwright": "*",
|
|
64
64
|
"webdriverio": "*",
|
|
65
|
-
"vitest": "2.1
|
|
65
|
+
"vitest": "2.2.0-beta.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"playwright": {
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"sirv": "^3.0.0",
|
|
84
84
|
"tinyrainbow": "^1.2.0",
|
|
85
85
|
"ws": "^8.18.0",
|
|
86
|
-
"@vitest/mocker": "2.1
|
|
87
|
-
"@vitest/utils": "2.1
|
|
86
|
+
"@vitest/mocker": "2.2.0-beta.1",
|
|
87
|
+
"@vitest/utils": "2.2.0-beta.1"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"playwright-core": "^1.48.2",
|
|
101
101
|
"safaridriver": "^0.1.2",
|
|
102
102
|
"webdriverio": "^8.40.6",
|
|
103
|
-
"@vitest/runner": "2.1
|
|
104
|
-
"@vitest/
|
|
105
|
-
"vitest": "2.1
|
|
106
|
-
"
|
|
103
|
+
"@vitest/runner": "2.2.0-beta.1",
|
|
104
|
+
"@vitest/ui": "2.2.0-beta.1",
|
|
105
|
+
"@vitest/ws-client": "2.2.0-beta.1",
|
|
106
|
+
"vitest": "2.2.0-beta.1"
|
|
107
107
|
},
|
|
108
108
|
"scripts": {
|
|
109
109
|
"build": "rimraf dist && pnpm build:node && pnpm build:client",
|