@vitest/browser-playwright 5.0.2 → 5.0.3
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 +2 -2
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { parseKeyDef, resolveScreenshotPath, assertBrowserApiWrite, assertBrowse
|
|
|
2
2
|
export { defineBrowserCommand } from '@vitest/browser';
|
|
3
3
|
import { createManualModuleSource } from '@vitest/mocker/node';
|
|
4
4
|
import c from 'tinyrainbow';
|
|
5
|
-
import { createDebugger, isCSSRequest } from 'vitest/node';
|
|
5
|
+
import { createDebugger, BrowserConnectionError, isCSSRequest } from 'vitest/node';
|
|
6
6
|
import { mkdir, unlink } from 'node:fs/promises';
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
8
|
|
|
@@ -1270,7 +1270,7 @@ class PlaywrightBrowserProvider {
|
|
|
1270
1270
|
page.on("crash", () => {
|
|
1271
1271
|
debug?.("[%s][%s] the page crashed", sessionId, this.browserName);
|
|
1272
1272
|
const session = this.project.vitest._browserSessions.getSession(sessionId);
|
|
1273
|
-
session?.fail(new
|
|
1273
|
+
session?.fail(new BrowserConnectionError(`The ${this.browserName} page crashed while running tests. This can happen if the browser ran out of memory.`));
|
|
1274
1274
|
});
|
|
1275
1275
|
if (process.env.VITEST_PW_DEBUG) {
|
|
1276
1276
|
page.on("requestfailed", (request) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser-playwright",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"description": "Browser running for Vitest using playwright",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
|
+
"__vitest_source__": "./src/index.ts",
|
|
28
29
|
"types": "./dist/index.d.ts",
|
|
29
30
|
"default": "./dist/index.js"
|
|
30
31
|
},
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
],
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"playwright": "*",
|
|
45
|
-
"vitest": "5.0.
|
|
46
|
+
"vitest": "5.0.3"
|
|
46
47
|
},
|
|
47
48
|
"peerDependenciesMeta": {
|
|
48
49
|
"playwright": {
|
|
@@ -50,13 +51,13 @@
|
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
|
-
"@vitest/browser": "5.0.
|
|
54
|
-
"@vitest/mocker": "5.0.
|
|
54
|
+
"@vitest/browser": "5.0.3",
|
|
55
|
+
"@vitest/mocker": "5.0.3",
|
|
55
56
|
"tinyrainbow": "^3.1.1"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"playwright": "^1.62.1",
|
|
59
|
-
"vitest": "5.0.
|
|
60
|
+
"vitest": "5.0.3"
|
|
60
61
|
},
|
|
61
62
|
"scripts": {
|
|
62
63
|
"build": "premove dist && pnpm rollup -c",
|