Socket
Socket
Sign inDemoInstall

@vitest/browser

Package Overview
Dependencies
3
Maintainers
3
Versions
110
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.3 to 1.0.0-beta.4

dist/client/__vitest__/assets/index-575791d1.css

35

dist/providers.js

@@ -136,5 +136,38 @@ import { ensurePackageInstalled } from 'vitest/node';

class NoneBrowserProvider {
name = "none";
ctx;
open = false;
getSupportedBrowsers() {
return [];
}
isOpen() {
return this.open;
}
async initialize(ctx) {
this.ctx = ctx;
this.open = false;
}
catchError(_cb) {
return () => {
};
}
async openPage(_url) {
this.open = true;
if (!this.ctx.browser)
throw new Error("Browser is not initialized");
const options = this.ctx.browser.config.server;
const _open = options.open;
options.open = _url;
this.ctx.browser.openBrowser();
options.open = _open;
}
async close() {
}
}
const webdriverio = WebdriverBrowserProvider;
const playwright = PlaywrightBrowserProvider;
const none = NoneBrowserProvider;
export { playwright, webdriverio };
export { none, playwright, webdriverio };

10

package.json
{
"name": "@vitest/browser",
"type": "module",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "Browser running for Vitest",

@@ -73,6 +73,6 @@ "license": "MIT",

"webdriverio": "^8.20.0",
"@vitest/runner": "1.0.0-beta.3",
"@vitest/ui": "1.0.0-beta.3",
"vitest": "1.0.0-beta.3",
"@vitest/ws-client": "1.0.0-beta.3"
"@vitest/runner": "1.0.0-beta.4",
"@vitest/ui": "1.0.0-beta.4",
"@vitest/ws-client": "1.0.0-beta.4",
"vitest": "1.0.0-beta.4"
},

@@ -79,0 +79,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc