@vitest/browser 4.0.0-beta.16 → 4.0.0-beta.17
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 +2 -20
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SerializedConfig } from 'vitest'
|
|
2
|
-
import { StringifyOptions } from 'vitest/internal/browser'
|
|
2
|
+
import { StringifyOptions, BrowserCommands } from 'vitest/internal/browser'
|
|
3
3
|
import { ARIARole } from './aria-role.js'
|
|
4
4
|
import {} from './matchers.js'
|
|
5
5
|
|
|
@@ -17,11 +17,6 @@ export type BufferEncoding =
|
|
|
17
17
|
| 'binary'
|
|
18
18
|
| 'hex'
|
|
19
19
|
|
|
20
|
-
export interface FsOptions {
|
|
21
|
-
encoding?: BufferEncoding
|
|
22
|
-
flag?: string | number
|
|
23
|
-
}
|
|
24
|
-
|
|
25
20
|
export interface CDPSession {
|
|
26
21
|
// methods are defined by the provider type augmentation
|
|
27
22
|
}
|
|
@@ -168,19 +163,6 @@ export interface ScreenshotMatcherOptions<
|
|
|
168
163
|
timeout?: number
|
|
169
164
|
}
|
|
170
165
|
|
|
171
|
-
export interface BrowserCommands {
|
|
172
|
-
readFile: (
|
|
173
|
-
path: string,
|
|
174
|
-
options?: BufferEncoding | FsOptions
|
|
175
|
-
) => Promise<string>
|
|
176
|
-
writeFile: (
|
|
177
|
-
path: string,
|
|
178
|
-
content: string,
|
|
179
|
-
options?: BufferEncoding | (FsOptions & { mode?: number | string })
|
|
180
|
-
) => Promise<void>
|
|
181
|
-
removeFile: (path: string) => Promise<void>
|
|
182
|
-
}
|
|
183
|
-
|
|
184
166
|
export interface UserEvent {
|
|
185
167
|
/**
|
|
186
168
|
* Creates a new user event instance. This is useful if you need to keep the
|
|
@@ -421,7 +403,7 @@ export interface LocatorByRoleOptions extends LocatorOptions {
|
|
|
421
403
|
|
|
422
404
|
interface LocatorScreenshotOptions extends Omit<ScreenshotOptions, 'element'> {}
|
|
423
405
|
|
|
424
|
-
interface LocatorSelectors {
|
|
406
|
+
export interface LocatorSelectors {
|
|
425
407
|
/**
|
|
426
408
|
* Creates a way to locate an element by its [ARIA role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles), [ARIA attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes) and [accessible name](https://developer.mozilla.org/en-US/docs/Glossary/Accessible_name).
|
|
427
409
|
* @see {@link https://vitest.dev/guide/browser/locators#getbyrole}
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { PNG } from 'pngjs';
|
|
|
18
18
|
import pm from 'pixelmatch';
|
|
19
19
|
import { WebSocketServer } from 'ws';
|
|
20
20
|
|
|
21
|
-
var version = "4.0.0-beta.
|
|
21
|
+
var version = "4.0.0-beta.17";
|
|
22
22
|
|
|
23
23
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
24
24
|
function normalizeWindowsPath(input = "") {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.17",
|
|
5
5
|
"description": "Browser running for Vitest",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"providers"
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"vitest": "4.0.0-beta.
|
|
55
|
+
"vitest": "4.0.0-beta.17"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"magic-string": "^0.30.19",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"sirv": "^3.0.2",
|
|
62
62
|
"tinyrainbow": "^3.0.3",
|
|
63
63
|
"ws": "^8.18.3",
|
|
64
|
-
"@vitest/
|
|
65
|
-
"@vitest/
|
|
64
|
+
"@vitest/mocker": "4.0.0-beta.17",
|
|
65
|
+
"@vitest/utils": "4.0.0-beta.17"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"ivya": "^1.7.0",
|
|
74
74
|
"mime": "^4.1.0",
|
|
75
75
|
"pathe": "^2.0.3",
|
|
76
|
-
"vitest": "4.0.0-beta.
|
|
77
|
-
"@vitest/runner": "4.0.0-beta.
|
|
76
|
+
"vitest": "4.0.0-beta.17",
|
|
77
|
+
"@vitest/runner": "4.0.0-beta.17"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"typecheck": "tsc -p ./src/client/tsconfig.json --noEmit",
|