@vitest/browser 3.0.0-beta.3 → 3.0.0-beta.4
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 +36 -0
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/index-BC8TFRpg.js +52 -0
- package/dist/client/__vitest__/index.html +1 -1
- package/dist/client/__vitest_browser__/{orchestrator-vOivV83Y.js → orchestrator-Cv-bzUFk.js} +1 -1
- package/dist/client/__vitest_browser__/{tester-CDBn6hqf.js → tester-DreAh6ar.js} +69 -55
- package/dist/client/__vitest_browser__/{utils-Owv5OOOf.js → utils-CaCTRFti.js} +2 -0
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/client.js +2 -2
- package/dist/context.js +22 -1
- package/dist/{index-VFFcOojA.js → index-Dos_sf7B.js} +9 -0
- package/dist/index.js +32 -22
- package/dist/locators/index.d.ts +3 -0
- package/dist/locators/index.js +1 -1
- package/dist/locators/playwright.js +1 -1
- package/dist/locators/preview.js +1 -1
- package/dist/locators/webdriverio.js +1 -1
- package/jest-dom.d.ts +4 -4
- package/package.json +9 -9
- package/providers/playwright.d.ts +2 -1
- package/providers/webdriverio.d.ts +2 -1
- package/dist/client/__vitest__/assets/index-JmEkKNR0.js +0 -52
package/jest-dom.d.ts
CHANGED
|
@@ -192,10 +192,10 @@ declare namespace matchers {
|
|
|
192
192
|
*
|
|
193
193
|
* const ancestor = getByTestId('ancestor')
|
|
194
194
|
* const descendant = getByTestId('descendant')
|
|
195
|
-
* const
|
|
195
|
+
* const nonExistentElement = getByTestId('does-not-exist')
|
|
196
196
|
* expect(ancestor).toContainElement(descendant)
|
|
197
197
|
* expect(descendant).not.toContainElement(ancestor)
|
|
198
|
-
* expect(ancestor).not.toContainElement(
|
|
198
|
+
* expect(ancestor).not.toContainElement(nonExistentElement)
|
|
199
199
|
* @see
|
|
200
200
|
* [testing-library/jest-dom#tocontainelement](https://github.com/testing-library/jest-dom#tocontainelement)
|
|
201
201
|
*/
|
|
@@ -282,7 +282,7 @@ declare namespace matchers {
|
|
|
282
282
|
* <option value="avocado">Avocado</option>
|
|
283
283
|
* </select>
|
|
284
284
|
*
|
|
285
|
-
* <label for="
|
|
285
|
+
* <label for="multiple-select-example">Fruits</label>
|
|
286
286
|
* <select id="multiple-select-example" multiple>
|
|
287
287
|
* <option value="">Select a fruit...</option>
|
|
288
288
|
* <option value="banana" selected>Banana</option>
|
|
@@ -382,7 +382,7 @@ declare namespace matchers {
|
|
|
382
382
|
* expect(element).toHaveTextContent('Content')
|
|
383
383
|
* // to match the whole content
|
|
384
384
|
* expect(element).toHaveTextContent(/^Text Content$/)
|
|
385
|
-
* // to use case-
|
|
385
|
+
* // to use case-insensitive match
|
|
386
386
|
* expect(element).toHaveTextContent(/content$/i)
|
|
387
387
|
* expect(element).not.toHaveTextContent('content')
|
|
388
388
|
* @see
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.4",
|
|
5
5
|
"description": "Browser running for Vitest",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"playwright": "*",
|
|
67
67
|
"webdriverio": "*",
|
|
68
|
-
"vitest": "3.0.0-beta.
|
|
68
|
+
"vitest": "3.0.0-beta.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|
|
71
71
|
"playwright": {
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"sirv": "^3.0.0",
|
|
87
87
|
"tinyrainbow": "^1.2.0",
|
|
88
88
|
"ws": "^8.18.0",
|
|
89
|
-
"@vitest/mocker": "3.0.0-beta.
|
|
90
|
-
"@vitest/utils": "3.0.0-beta.
|
|
89
|
+
"@vitest/mocker": "3.0.0-beta.4",
|
|
90
|
+
"@vitest/utils": "3.0.0-beta.4"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -97,16 +97,16 @@
|
|
|
97
97
|
"flatted": "^3.3.2",
|
|
98
98
|
"ivya": "^1.1.1",
|
|
99
99
|
"mime": "^4.0.6",
|
|
100
|
-
"pathe": "^
|
|
100
|
+
"pathe": "^2.0.0",
|
|
101
101
|
"periscopic": "^4.0.2",
|
|
102
102
|
"playwright": "^1.49.1",
|
|
103
103
|
"playwright-core": "^1.49.1",
|
|
104
104
|
"safaridriver": "^1.0.0",
|
|
105
105
|
"webdriverio": "^8.41.0",
|
|
106
|
-
"@vitest/runner": "3.0.0-beta.
|
|
107
|
-
"@vitest/ui": "3.0.0-beta.
|
|
108
|
-
"@vitest/ws-client": "3.0.0-beta.
|
|
109
|
-
"vitest": "3.0.0-beta.
|
|
106
|
+
"@vitest/runner": "3.0.0-beta.4",
|
|
107
|
+
"@vitest/ui": "3.0.0-beta.4",
|
|
108
|
+
"@vitest/ws-client": "3.0.0-beta.4",
|
|
109
|
+
"vitest": "3.0.0-beta.4"
|
|
110
110
|
},
|
|
111
111
|
"scripts": {
|
|
112
112
|
"build": "rimraf dist && pnpm build:node && pnpm build:client",
|
|
@@ -9,9 +9,10 @@ import type {
|
|
|
9
9
|
} from 'playwright'
|
|
10
10
|
import { Protocol } from 'playwright-core/types/protocol'
|
|
11
11
|
import '../matchers.js'
|
|
12
|
+
import type {} from "vitest/node"
|
|
12
13
|
|
|
13
14
|
declare module 'vitest/node' {
|
|
14
|
-
interface BrowserProviderOptions {
|
|
15
|
+
export interface BrowserProviderOptions {
|
|
15
16
|
launch?: LaunchOptions
|
|
16
17
|
context?: Omit<
|
|
17
18
|
BrowserContextOptions,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { RemoteOptions, ClickOptions, DragAndDropOptions } from 'webdriverio'
|
|
2
2
|
import '../matchers.js'
|
|
3
|
+
import type {} from "vitest/node"
|
|
3
4
|
|
|
4
5
|
declare module 'vitest/node' {
|
|
5
|
-
interface BrowserProviderOptions extends Partial<RemoteOptions> {}
|
|
6
|
+
export interface BrowserProviderOptions extends Partial<RemoteOptions> {}
|
|
6
7
|
|
|
7
8
|
export interface UserEventClickOptions extends ClickOptions {}
|
|
8
9
|
|