Socket
Socket
Sign inDemoInstall

@web/test-runner-commands

Package Overview
Dependencies
191
Maintainers
7
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.1 to 0.6.2

24

browser/commands.d.ts

@@ -29,3 +29,25 @@ import {

*
* The reducedMotion option is a puppeteer-only API.
* The `forcedColors` property is Playwright-only API that does not work in WebKit.
*
* @example
* ```ts
* await emulateMedia({
* colorScheme: 'dark',
* reducedMotion: 'reduce',
* });
* ```
*
* @example
* ```ts
* await emulateMedia({
* media: 'print',
* });
* ```
*
* @example
* ```ts
* await emulateMedia({
* forcedColors: 'active',
* });
* ```
*/

@@ -32,0 +54,0 @@ export function emulateMedia(media: Media): Promise<void>;

@@ -6,4 +6,5 @@ import { TestRunnerPlugin } from '@web/test-runner-core';

reducedMotion?: 'reduce' | 'no-preference';
forcedColors?: 'active' | 'none';
}
export declare function emulateMediaPlugin(): TestRunnerPlugin;
//# sourceMappingURL=emulateMediaPlugin.d.ts.map

9

package.json
{
"name": "@web/test-runner-commands",
"version": "0.6.1",
"version": "0.6.2",
"publishConfig": {

@@ -18,3 +18,6 @@ "access": "public"

"exports": {
".": "./browser/commands.mjs",
".": {
"types": "./browser/commands.d.ts",
"default": "./browser/commands.mjs"
},
"./plugins": {

@@ -54,3 +57,3 @@ "import": "./plugins.mjs",

"@web/test-runner-chrome": "^0.10.2",
"@web/test-runner-playwright": "^0.8.8",
"@web/test-runner-playwright": "^0.8.9",
"@web/test-runner-webdriver": "^0.5.0",

@@ -57,0 +60,0 @@ "mocha": "^8.2.1"

@@ -9,2 +9,3 @@ import { TestRunnerPlugin } from '@web/test-runner-core';

reducedMotion?: 'reduce' | 'no-preference';
forcedColors?: 'active' | 'none';
}

@@ -11,0 +12,0 @@

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