@vitest/browser 3.0.5 → 3.0.7
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/context.d.ts +8 -8
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/index-BX_iUIjH.js +52 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-vOivV83Y.js → orchestrator-DeY4LJgz.js} +2 -1
- package/dist/client/__vitest_browser__/tester-Cqa_buNy.js +15505 -0
- package/dist/client/__vitest_browser__/{utils-Owv5OOOf.js → utils-CBFLDkwI.js} +23 -0
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/client.js +5 -5
- package/dist/context.js +6 -9
- package/dist/{index--cbQOwRJ.js → index-fqTesRIH.js} +3 -14
- package/dist/index.d.ts +6 -7
- package/dist/index.js +34 -25
- package/dist/locators/index.d.ts +0 -3
- package/dist/locators/index.js +2 -2
- package/dist/locators/playwright.js +2 -2
- package/dist/locators/preview.js +2 -2
- package/dist/locators/webdriverio.js +2 -2
- package/dist/providers.js +1 -1
- package/dist/{public-utils-DldpEzVw.js → public-utils-J4vwTaki.js} +100 -102
- package/dist/state.js +1 -1
- package/dist/utils.js +1 -1
- package/dist/{webdriver-kh_HHy0p.js → webdriver-C5-VI7VH.js} +17 -8
- package/dummy.js +0 -0
- package/jest-dom.d.ts +1 -2
- package/package.json +21 -19
- package/providers/webdriverio.d.ts +4 -2
- package/dist/client/__vitest__/assets/index-CkLwJNkP.js +0 -52
- package/dist/client/__vitest_browser__/tester-BbJOQDQr.js +0 -13875
- /package/dist/client/__vitest__/assets/{index-D-vGI2PU.css → index-CV9H8iCm.css} +0 -0
package/jest-dom.d.ts
CHANGED
|
@@ -260,8 +260,7 @@ declare namespace matchers {
|
|
|
260
260
|
* @see
|
|
261
261
|
* [testing-library/jest-dom#tohaveclass](https://github.com/testing-library/jest-dom#tohaveclass)
|
|
262
262
|
*/
|
|
263
|
-
toHaveClass(classNames: string, options?: {exact: boolean}): R
|
|
264
|
-
toHaveClass(...classNames: Array<string | RegExp>): R
|
|
263
|
+
toHaveClass(...classNames: (string | RegExp)[] | [string, options?: {exact: boolean}]): R
|
|
265
264
|
/**
|
|
266
265
|
* @description
|
|
267
266
|
* This allows you to check whether the given form element has the specified displayed value (the one the
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.7",
|
|
5
5
|
"description": "Browser running for Vitest",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -60,12 +60,13 @@
|
|
|
60
60
|
"*.d.ts",
|
|
61
61
|
"context.js",
|
|
62
62
|
"dist",
|
|
63
|
+
"dummy.js",
|
|
63
64
|
"providers"
|
|
64
65
|
],
|
|
65
66
|
"peerDependencies": {
|
|
66
67
|
"playwright": "*",
|
|
67
|
-
"webdriverio": "
|
|
68
|
-
"vitest": "3.0.
|
|
68
|
+
"webdriverio": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
69
|
+
"vitest": "3.0.7"
|
|
69
70
|
},
|
|
70
71
|
"peerDependenciesMeta": {
|
|
71
72
|
"playwright": {
|
|
@@ -82,31 +83,32 @@
|
|
|
82
83
|
"@testing-library/dom": "^10.4.0",
|
|
83
84
|
"@testing-library/user-event": "^14.6.1",
|
|
84
85
|
"magic-string": "^0.30.17",
|
|
85
|
-
"msw": "^2.7.
|
|
86
|
-
"sirv": "^3.0.
|
|
86
|
+
"msw": "^2.7.3",
|
|
87
|
+
"sirv": "^3.0.1",
|
|
87
88
|
"tinyrainbow": "^2.0.0",
|
|
88
|
-
"ws": "^8.18.
|
|
89
|
-
"@vitest/
|
|
90
|
-
"@vitest/
|
|
89
|
+
"ws": "^8.18.1",
|
|
90
|
+
"@vitest/mocker": "3.0.7",
|
|
91
|
+
"@vitest/utils": "3.0.7"
|
|
91
92
|
},
|
|
92
93
|
"devDependencies": {
|
|
93
94
|
"@testing-library/jest-dom": "^6.6.3",
|
|
94
|
-
"@types/ws": "^8.5.
|
|
95
|
-
"@wdio/protocols": "^
|
|
95
|
+
"@types/ws": "^8.5.14",
|
|
96
|
+
"@wdio/protocols": "^9.7.0",
|
|
97
|
+
"@wdio/types": "^9.9.0",
|
|
96
98
|
"birpc": "0.2.19",
|
|
97
|
-
"flatted": "^3.3.
|
|
99
|
+
"flatted": "^3.3.3",
|
|
98
100
|
"ivya": "^1.1.1",
|
|
99
101
|
"mime": "^4.0.6",
|
|
100
|
-
"pathe": "^2.0.
|
|
102
|
+
"pathe": "^2.0.3",
|
|
101
103
|
"periscopic": "^4.0.2",
|
|
102
|
-
"playwright": "^1.
|
|
103
|
-
"playwright-core": "^1.
|
|
104
|
+
"playwright": "^1.50.1",
|
|
105
|
+
"playwright-core": "^1.50.1",
|
|
104
106
|
"safaridriver": "^1.0.0",
|
|
105
|
-
"webdriverio": "^
|
|
106
|
-
"@vitest/runner": "3.0.
|
|
107
|
-
"@vitest/ui": "3.0.
|
|
108
|
-
"@vitest/ws-client": "3.0.
|
|
109
|
-
"vitest": "3.0.
|
|
107
|
+
"webdriverio": "^9.10.0",
|
|
108
|
+
"@vitest/runner": "3.0.7",
|
|
109
|
+
"@vitest/ui": "3.0.7",
|
|
110
|
+
"@vitest/ws-client": "3.0.7",
|
|
111
|
+
"vitest": "3.0.7"
|
|
110
112
|
},
|
|
111
113
|
"scripts": {
|
|
112
114
|
"build": "rimraf dist && pnpm build:node && pnpm build:client",
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { remote, ClickOptions, DragAndDropOptions } from 'webdriverio'
|
|
2
2
|
import '../matchers.js'
|
|
3
3
|
import type {} from "vitest/node"
|
|
4
4
|
|
|
5
5
|
declare module 'vitest/node' {
|
|
6
|
-
export interface BrowserProviderOptions extends Partial<
|
|
6
|
+
export interface BrowserProviderOptions extends Partial<
|
|
7
|
+
Parameters<typeof remote>[0]
|
|
8
|
+
> {}
|
|
7
9
|
|
|
8
10
|
export interface UserEventClickOptions extends ClickOptions {}
|
|
9
11
|
|