@web/test-runner-commands
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -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 |
{ | ||
"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
103996
1910