@vitest/browser-preview 5.0.0-beta.4 → 5.0.0-beta.5
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 +1 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { nextTick } from 'node:process';
|
|
2
1
|
import { defineBrowserProvider } from '@vitest/browser';
|
|
3
2
|
export { defineBrowserCommand } from '@vitest/browser';
|
|
4
3
|
import { fileURLToPath } from 'node:url';
|
|
@@ -122,9 +121,6 @@ class PreviewBrowserProvider {
|
|
|
122
121
|
if (project.config.browser.headless) {
|
|
123
122
|
throw new Error("You've enabled headless mode for \"preview\" provider but it doesn't support it. Use \"playwright\" or \"webdriverio\" instead: https://vitest.dev/guide/browser/#configuration");
|
|
124
123
|
}
|
|
125
|
-
nextTick(() => {
|
|
126
|
-
project.vitest.logger.printBrowserBanner(project);
|
|
127
|
-
});
|
|
128
124
|
}
|
|
129
125
|
isOpen() {
|
|
130
126
|
return this.open;
|
|
@@ -134,6 +130,7 @@ class PreviewBrowserProvider {
|
|
|
134
130
|
}
|
|
135
131
|
async openPage(_sessionId, url) {
|
|
136
132
|
this.open = true;
|
|
133
|
+
this.project.vitest.logger.log(`Browser runner started at ${url}\n`);
|
|
137
134
|
if (!this.project.browser) {
|
|
138
135
|
throw new Error("Browser is not initialized");
|
|
139
136
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser-preview",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.5",
|
|
5
5
|
"description": "Browser running for Vitest using your browser of choice",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"dist"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"vitest": "5.0.0-beta.
|
|
43
|
+
"vitest": "5.0.0-beta.5"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@testing-library/dom": "^10.4.1",
|
|
47
47
|
"@testing-library/user-event": "^14.6.1",
|
|
48
|
-
"@vitest/browser": "5.0.0-beta.
|
|
48
|
+
"@vitest/browser": "5.0.0-beta.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"vitest": "5.0.0-beta.
|
|
51
|
+
"vitest": "5.0.0-beta.5"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "premove dist && pnpm rollup -c",
|