@ariakit/test 0.3.9 → 0.3.11
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/CHANGELOG.md +9 -0
- package/cjs/__aria-role.d.cts +2 -0
- package/cjs/__aria-role.d.ts +2 -0
- package/cjs/__chunks/ERFCHS75.cjs +91 -0
- package/cjs/__chunks/{ZH5OPOS6.cjs → W53ATX47.cjs} +4 -85
- package/cjs/index.cjs +3 -2
- package/cjs/playwright.cjs +19 -0
- package/cjs/playwright.d.cts +6 -0
- package/cjs/playwright.d.ts +6 -0
- package/cjs/query.cjs +3 -2
- package/cjs/query.d.cts +150 -150
- package/cjs/query.d.ts +150 -150
- package/cjs/react.cjs +3 -2
- package/cjs/react.d.cts +2 -2
- package/cjs/react.d.ts +2 -2
- package/esm/__aria-role.d.ts +2 -0
- package/esm/__chunks/{P574EHHD.js → 2L7BSF5A.js} +3 -84
- package/esm/__chunks/CWTUOQ5Z.js +91 -0
- package/esm/index.js +2 -1
- package/esm/playwright.d.ts +6 -0
- package/esm/playwright.js +19 -0
- package/esm/query.d.ts +150 -150
- package/esm/query.js +2 -1
- package/esm/react.d.ts +2 -2
- package/esm/react.js +2 -1
- package/package.json +13 -2
- package/playwright/package.json +8 -0
package/esm/query.js
CHANGED
package/esm/react.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
2
|
import * as ReactTestingLibrary from "@testing-library/react";
|
|
3
3
|
export * from "./index.js";
|
|
4
4
|
export interface RenderOptions extends Omit<ReactTestingLibrary.RenderOptions, "queries"> {
|
|
5
5
|
strictMode?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare function render(ui:
|
|
7
|
+
export declare function render(ui: ReactNode, options?: RenderOptions): Promise<() => void>;
|
package/esm/react.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariakit/test",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "Ariakit test utils",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,14 +29,18 @@
|
|
|
29
29
|
"react"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ariakit/core": "0.4.
|
|
32
|
+
"@ariakit/core": "0.4.2",
|
|
33
33
|
"@testing-library/dom": "^8.0.0 || ^9.0.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
+
"@playwright/test": "^1.27.0",
|
|
36
37
|
"@testing-library/react": "^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
37
38
|
"react": "^17.0.0 || ^18.0.0"
|
|
38
39
|
},
|
|
39
40
|
"peerDependenciesMeta": {
|
|
41
|
+
"@playwright/test": {
|
|
42
|
+
"optional": true
|
|
43
|
+
},
|
|
40
44
|
"@testing-library/react": {
|
|
41
45
|
"optional": true
|
|
42
46
|
},
|
|
@@ -108,6 +112,13 @@
|
|
|
108
112
|
"default": "./cjs/press.cjs"
|
|
109
113
|
}
|
|
110
114
|
},
|
|
115
|
+
"./playwright": {
|
|
116
|
+
"import": "./esm/playwright.js",
|
|
117
|
+
"require": {
|
|
118
|
+
"types": "./cjs/playwright.d.cts",
|
|
119
|
+
"default": "./cjs/playwright.cjs"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
111
122
|
"./mouse-up": {
|
|
112
123
|
"import": "./esm/mouse-up.js",
|
|
113
124
|
"require": {
|