@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/esm/query.js CHANGED
@@ -2,7 +2,8 @@
2
2
  import {
3
3
  q,
4
4
  query
5
- } from "./__chunks/P574EHHD.js";
5
+ } from "./__chunks/2L7BSF5A.js";
6
+ import "./__chunks/CWTUOQ5Z.js";
6
7
  import "./__chunks/Q65FZOE2.js";
7
8
  export {
8
9
  q,
package/esm/react.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { ReactElement } from "react";
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: ReactElement, options?: RenderOptions): Promise<() => void>;
7
+ export declare function render(ui: ReactNode, options?: RenderOptions): Promise<() => void>;
package/esm/react.js CHANGED
@@ -24,7 +24,8 @@ import {
24
24
  import {
25
25
  q,
26
26
  query
27
- } from "./__chunks/P574EHHD.js";
27
+ } from "./__chunks/2L7BSF5A.js";
28
+ import "./__chunks/CWTUOQ5Z.js";
28
29
  import {
29
30
  press
30
31
  } from "./__chunks/YRF6BLTM.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariakit/test",
3
- "version": "0.3.9",
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.0",
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": {
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@ariakit/test/playwright",
3
+ "private": true,
4
+ "sideEffects": false,
5
+ "main": "../cjs/playwright.cjs",
6
+ "module": "../esm/playwright.js",
7
+ "types": "../cjs/playwright.d.ts"
8
+ }