@ariakit/test 0.3.15 → 0.4.0

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/cjs/__chunks/{LBY37VXL.cjs → 4TS37S3Q.cjs} +34 -35
  3. package/cjs/__chunks/{LG7B6NOG.cjs → 6LDGWG7T.cjs} +2 -2
  4. package/cjs/__chunks/{CYMYDRLS.cjs → 6UE2XSIU.cjs} +8 -11
  5. package/cjs/__chunks/AGLSU3Q2.cjs +68 -0
  6. package/cjs/__chunks/{BXOTZFAK.cjs → AV5N3TNH.cjs} +7 -14
  7. package/cjs/__chunks/{VD3ERVOF.cjs → ELVRZW56.cjs} +3 -3
  8. package/cjs/__chunks/{3BQXN3A5.cjs → GFFCFEOC.cjs} +13 -14
  9. package/cjs/__chunks/{IWPK655Z.cjs → JFCVJ4KU.cjs} +20 -24
  10. package/cjs/__chunks/{BIB7E6LN.cjs → KRKGFFBK.cjs} +10 -16
  11. package/cjs/__chunks/{QCXNVFD7.cjs → LJ2IERQF.cjs} +8 -10
  12. package/cjs/__chunks/{22RRPVHJ.cjs → QOXIFOCW.cjs} +2 -2
  13. package/cjs/__chunks/{ZNASNKOZ.cjs → QRXZHH5L.cjs} +22 -29
  14. package/cjs/__chunks/{DJWEA66K.cjs → RKZYK2KK.cjs} +30 -34
  15. package/cjs/__chunks/WO6I3N3U.cjs +20 -0
  16. package/cjs/__chunks/{IZMYJH6V.cjs → Z3RYFL2T.cjs} +7 -9
  17. package/cjs/blur.cjs +5 -5
  18. package/cjs/click.cjs +11 -11
  19. package/cjs/dispatch.cjs +4 -4
  20. package/cjs/focus.cjs +5 -5
  21. package/cjs/hover.cjs +6 -6
  22. package/cjs/index.cjs +17 -17
  23. package/cjs/mouse-down.cjs +7 -7
  24. package/cjs/mouse-up.cjs +5 -5
  25. package/cjs/playwright.cjs +2 -2
  26. package/cjs/press.cjs +9 -9
  27. package/cjs/press.d.cts +15 -15
  28. package/cjs/press.d.ts +15 -15
  29. package/cjs/query.cjs +3 -3
  30. package/cjs/query.d.cts +33 -32
  31. package/cjs/query.d.ts +33 -32
  32. package/cjs/react.cjs +39 -29
  33. package/cjs/react.d.cts +5 -2
  34. package/cjs/react.d.ts +5 -2
  35. package/cjs/select.cjs +11 -11
  36. package/cjs/sleep.cjs +4 -4
  37. package/cjs/tap.cjs +12 -12
  38. package/cjs/type.cjs +7 -7
  39. package/cjs/wait-for.cjs +4 -4
  40. package/esm/__chunks/{AVTGTEGG.js → 2TPVB4MR.js} +7 -8
  41. package/esm/__chunks/{JIRMKL2I.js → 7NQ5CXYI.js} +1 -1
  42. package/esm/__chunks/{7Y66O5SI.js → DHZBG4QM.js} +18 -19
  43. package/esm/__chunks/{3EIGH73D.js → DZ24E43J.js} +1 -1
  44. package/esm/__chunks/{QDVGEIL5.js → EMPG4BYT.js} +11 -15
  45. package/esm/__chunks/{6GDQHEBE.js → G32GEXRJ.js} +7 -13
  46. package/esm/__chunks/{7I2TICIC.js → HFG3HB6M.js} +7 -14
  47. package/esm/__chunks/{QE2YCTHV.js → HI4LQVNU.js} +5 -8
  48. package/esm/__chunks/{VD2VFA32.js → HO5N5GTX.js} +4 -6
  49. package/esm/__chunks/{MLBZISHH.js → NSFKY4TP.js} +1 -1
  50. package/esm/__chunks/{G2JU2LVB.js → SB7WYA2U.js} +1 -1
  51. package/esm/__chunks/{VVYOYAEF.js → UQRVXJ7Z.js} +13 -20
  52. package/esm/__chunks/{LRKW54RD.js → VMVRY4TL.js} +5 -6
  53. package/esm/__chunks/{DMIPXMWG.js → W46IR3LA.js} +11 -15
  54. package/esm/__chunks/{V36IYEJN.js → ZPXIP5WW.js} +5 -7
  55. package/esm/blur.js +4 -4
  56. package/esm/click.js +10 -10
  57. package/esm/dispatch.js +3 -3
  58. package/esm/focus.js +4 -4
  59. package/esm/hover.js +5 -5
  60. package/esm/index.js +16 -16
  61. package/esm/mouse-down.js +6 -6
  62. package/esm/mouse-up.js +4 -4
  63. package/esm/playwright.js +1 -1
  64. package/esm/press.d.ts +15 -15
  65. package/esm/press.js +8 -8
  66. package/esm/query.d.ts +33 -32
  67. package/esm/query.js +2 -2
  68. package/esm/react.d.ts +5 -2
  69. package/esm/react.js +35 -25
  70. package/esm/select.js +10 -10
  71. package/esm/sleep.js +3 -3
  72. package/esm/tap.js +11 -11
  73. package/esm/type.js +6 -6
  74. package/esm/wait-for.js +3 -3
  75. package/package.json +5 -5
  76. package/.eslintignore +0 -6
  77. package/cjs/__chunks/HQ3KUD6F.cjs +0 -20
  78. package/cjs/__chunks/UWCNB4SR.cjs +0 -69
  79. /package/cjs/__chunks/{OVN5OYWK.cjs → DOXEES2I.cjs} +0 -0
  80. /package/esm/__chunks/{Q65FZOE2.js → SM5ASDQ3.js} +0 -0
package/esm/hover.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  hover
4
- } from "./__chunks/LRKW54RD.js";
5
- import "./__chunks/JIRMKL2I.js";
6
- import "./__chunks/3EIGH73D.js";
7
- import "./__chunks/7I2TICIC.js";
8
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/VMVRY4TL.js";
5
+ import "./__chunks/7NQ5CXYI.js";
6
+ import "./__chunks/DZ24E43J.js";
7
+ import "./__chunks/HFG3HB6M.js";
8
+ import "./__chunks/SM5ASDQ3.js";
9
9
  export {
10
10
  hover
11
11
  };
package/esm/index.js CHANGED
@@ -2,50 +2,50 @@
2
2
  import "./__chunks/RHBNMDK4.js";
3
3
  import {
4
4
  waitFor
5
- } from "./__chunks/G2JU2LVB.js";
5
+ } from "./__chunks/SB7WYA2U.js";
6
6
  import {
7
7
  tap
8
- } from "./__chunks/MLBZISHH.js";
8
+ } from "./__chunks/NSFKY4TP.js";
9
9
  import {
10
10
  click
11
- } from "./__chunks/7Y66O5SI.js";
11
+ } from "./__chunks/DHZBG4QM.js";
12
12
  import {
13
13
  select
14
- } from "./__chunks/QDVGEIL5.js";
14
+ } from "./__chunks/EMPG4BYT.js";
15
15
  import {
16
16
  mouseUp
17
- } from "./__chunks/V36IYEJN.js";
17
+ } from "./__chunks/ZPXIP5WW.js";
18
18
  import {
19
19
  mouseDown
20
- } from "./__chunks/AVTGTEGG.js";
20
+ } from "./__chunks/2TPVB4MR.js";
21
21
  import {
22
22
  hover
23
- } from "./__chunks/LRKW54RD.js";
23
+ } from "./__chunks/VMVRY4TL.js";
24
24
  import {
25
25
  q,
26
26
  query
27
- } from "./__chunks/6GDQHEBE.js";
27
+ } from "./__chunks/G32GEXRJ.js";
28
28
  import "./__chunks/CWTUOQ5Z.js";
29
29
  import {
30
30
  press
31
- } from "./__chunks/DMIPXMWG.js";
31
+ } from "./__chunks/W46IR3LA.js";
32
32
  import {
33
33
  type
34
- } from "./__chunks/VVYOYAEF.js";
34
+ } from "./__chunks/UQRVXJ7Z.js";
35
35
  import {
36
36
  blur
37
- } from "./__chunks/QE2YCTHV.js";
37
+ } from "./__chunks/HI4LQVNU.js";
38
38
  import {
39
39
  focus
40
- } from "./__chunks/VD2VFA32.js";
40
+ } from "./__chunks/HO5N5GTX.js";
41
41
  import {
42
42
  dispatch
43
- } from "./__chunks/JIRMKL2I.js";
43
+ } from "./__chunks/7NQ5CXYI.js";
44
44
  import {
45
45
  sleep
46
- } from "./__chunks/3EIGH73D.js";
47
- import "./__chunks/7I2TICIC.js";
48
- import "./__chunks/Q65FZOE2.js";
46
+ } from "./__chunks/DZ24E43J.js";
47
+ import "./__chunks/HFG3HB6M.js";
48
+ import "./__chunks/SM5ASDQ3.js";
49
49
  export {
50
50
  blur,
51
51
  click,
package/esm/mouse-down.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  mouseDown
4
- } from "./__chunks/AVTGTEGG.js";
5
- import "./__chunks/QE2YCTHV.js";
6
- import "./__chunks/VD2VFA32.js";
7
- import "./__chunks/JIRMKL2I.js";
8
- import "./__chunks/7I2TICIC.js";
9
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/2TPVB4MR.js";
5
+ import "./__chunks/HI4LQVNU.js";
6
+ import "./__chunks/HO5N5GTX.js";
7
+ import "./__chunks/7NQ5CXYI.js";
8
+ import "./__chunks/HFG3HB6M.js";
9
+ import "./__chunks/SM5ASDQ3.js";
10
10
  export {
11
11
  mouseDown
12
12
  };
package/esm/mouse-up.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  mouseUp
4
- } from "./__chunks/V36IYEJN.js";
5
- import "./__chunks/JIRMKL2I.js";
6
- import "./__chunks/7I2TICIC.js";
7
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/ZPXIP5WW.js";
5
+ import "./__chunks/7NQ5CXYI.js";
6
+ import "./__chunks/HFG3HB6M.js";
7
+ import "./__chunks/SM5ASDQ3.js";
8
8
  export {
9
9
  mouseUp
10
10
  };
package/esm/playwright.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./__chunks/CWTUOQ5Z.js";
5
5
  import {
6
6
  __spreadValues
7
- } from "./__chunks/Q65FZOE2.js";
7
+ } from "./__chunks/SM5ASDQ3.js";
8
8
 
9
9
  // src/playwright.ts
10
10
  function query(locator) {
package/esm/press.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  export declare function press(key: string, element?: Element | null, options?: KeyboardEventInit): Promise<void>;
2
2
  export declare namespace press {
3
- var Escape: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
4
- var Backspace: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
5
- var Delete: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
6
- var Tab: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
7
- var ShiftTab: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
8
- var Enter: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
9
- var Space: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
10
- var ArrowUp: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
11
- var ArrowRight: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
12
- var ArrowDown: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
13
- var ArrowLeft: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
14
- var End: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
15
- var Home: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
16
- var PageUp: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
17
- var PageDown: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
3
+ var Escape: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
4
+ var Backspace: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
5
+ var Delete: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
6
+ var Tab: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
7
+ var ShiftTab: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
8
+ var Enter: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
9
+ var Space: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
10
+ var ArrowUp: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
11
+ var ArrowRight: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
12
+ var ArrowDown: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
13
+ var ArrowLeft: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
14
+ var End: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
15
+ var Home: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
16
+ var PageUp: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
17
+ var PageDown: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
18
18
  }
package/esm/press.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import {
3
3
  press
4
- } from "./__chunks/DMIPXMWG.js";
5
- import "./__chunks/VVYOYAEF.js";
6
- import "./__chunks/QE2YCTHV.js";
7
- import "./__chunks/VD2VFA32.js";
8
- import "./__chunks/JIRMKL2I.js";
9
- import "./__chunks/3EIGH73D.js";
10
- import "./__chunks/7I2TICIC.js";
11
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/W46IR3LA.js";
5
+ import "./__chunks/UQRVXJ7Z.js";
6
+ import "./__chunks/HI4LQVNU.js";
7
+ import "./__chunks/HO5N5GTX.js";
8
+ import "./__chunks/7NQ5CXYI.js";
9
+ import "./__chunks/DZ24E43J.js";
10
+ import "./__chunks/HFG3HB6M.js";
11
+ import "./__chunks/SM5ASDQ3.js";
12
12
  export {
13
13
  press
14
14
  };
package/esm/query.d.ts CHANGED
@@ -1,27 +1,28 @@
1
+ import { queries as baseQueries } from "@testing-library/dom";
1
2
  import type { ByRoleOptions } from "@testing-library/dom";
2
3
  export declare const query: {
3
- text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
4
- all: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
5
- wait: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
6
- ensure: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
4
+ text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
5
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
6
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
7
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
7
8
  };
8
- wait: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
9
- all: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
9
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
10
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
10
11
  };
11
- ensure: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_5) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
12
- all: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
12
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
13
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
13
14
  };
14
15
  };
15
- labeled: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_6 | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
16
- all: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
17
- wait: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
18
- ensure: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
16
+ labeled: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
17
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
18
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
19
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
19
20
  };
20
- wait: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
21
- all: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
21
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
22
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
22
23
  };
23
- ensure: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_11) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
24
- all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
24
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
25
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
25
26
  };
26
27
  };
27
28
  within: (element?: HTMLElement | null) => any;
@@ -1995,28 +1996,28 @@ export declare const query: {
1995
1996
  };
1996
1997
  };
1997
1998
  export declare const q: {
1998
- text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
1999
- all: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2000
- wait: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2001
- ensure: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
1999
+ text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2000
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2001
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2002
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2002
2003
  };
2003
- wait: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2004
- all: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2004
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2005
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2005
2006
  };
2006
- ensure: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_5) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2007
- all: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2007
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2008
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2008
2009
  };
2009
2010
  };
2010
- labeled: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_6 | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2011
- all: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2012
- wait: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2013
- ensure: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2011
+ labeled: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2012
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2013
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2014
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2014
2015
  };
2015
- wait: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2016
- all: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2016
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2017
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2017
2018
  };
2018
- ensure: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_11) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2019
- all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2019
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2020
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2020
2021
  };
2021
2022
  };
2022
2023
  within: (element?: HTMLElement | null) => any;
package/esm/query.js CHANGED
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  q,
4
4
  query
5
- } from "./__chunks/6GDQHEBE.js";
5
+ } from "./__chunks/G32GEXRJ.js";
6
6
  import "./__chunks/CWTUOQ5Z.js";
7
- import "./__chunks/Q65FZOE2.js";
7
+ import "./__chunks/SM5ASDQ3.js";
8
8
  export {
9
9
  q,
10
10
  query
package/esm/react.d.ts CHANGED
@@ -1,7 +1,10 @@
1
- import type { ReactNode } from "react";
2
1
  import * as ReactTestingLibrary from "@testing-library/react";
2
+ import type { ReactNode } from "react";
3
3
  export * from "./index.ts";
4
4
  export interface RenderOptions extends Omit<ReactTestingLibrary.RenderOptions, "queries"> {
5
5
  strictMode?: boolean;
6
6
  }
7
- export declare function render(ui: ReactNode, options?: RenderOptions): Promise<() => void>;
7
+ export declare function render(ui: ReactNode, options?: RenderOptions): Promise<{
8
+ unmount: () => void;
9
+ rerender: (newUi: ReactNode) => Promise<void>;
10
+ }>;
package/esm/react.js CHANGED
@@ -2,76 +2,86 @@
2
2
  import "./__chunks/RHBNMDK4.js";
3
3
  import {
4
4
  waitFor
5
- } from "./__chunks/G2JU2LVB.js";
5
+ } from "./__chunks/SB7WYA2U.js";
6
6
  import {
7
7
  tap
8
- } from "./__chunks/MLBZISHH.js";
8
+ } from "./__chunks/NSFKY4TP.js";
9
9
  import {
10
10
  click
11
- } from "./__chunks/7Y66O5SI.js";
11
+ } from "./__chunks/DHZBG4QM.js";
12
12
  import {
13
13
  select
14
- } from "./__chunks/QDVGEIL5.js";
14
+ } from "./__chunks/EMPG4BYT.js";
15
15
  import {
16
16
  mouseUp
17
- } from "./__chunks/V36IYEJN.js";
17
+ } from "./__chunks/ZPXIP5WW.js";
18
18
  import {
19
19
  mouseDown
20
- } from "./__chunks/AVTGTEGG.js";
20
+ } from "./__chunks/2TPVB4MR.js";
21
21
  import {
22
22
  hover
23
- } from "./__chunks/LRKW54RD.js";
23
+ } from "./__chunks/VMVRY4TL.js";
24
24
  import {
25
25
  q,
26
26
  query
27
- } from "./__chunks/6GDQHEBE.js";
27
+ } from "./__chunks/G32GEXRJ.js";
28
28
  import "./__chunks/CWTUOQ5Z.js";
29
29
  import {
30
30
  press
31
- } from "./__chunks/DMIPXMWG.js";
31
+ } from "./__chunks/W46IR3LA.js";
32
32
  import {
33
33
  type
34
- } from "./__chunks/VVYOYAEF.js";
34
+ } from "./__chunks/UQRVXJ7Z.js";
35
35
  import {
36
36
  blur
37
- } from "./__chunks/QE2YCTHV.js";
37
+ } from "./__chunks/HI4LQVNU.js";
38
38
  import {
39
39
  focus
40
- } from "./__chunks/VD2VFA32.js";
40
+ } from "./__chunks/HO5N5GTX.js";
41
41
  import {
42
42
  dispatch
43
- } from "./__chunks/JIRMKL2I.js";
43
+ } from "./__chunks/7NQ5CXYI.js";
44
44
  import {
45
45
  sleep
46
- } from "./__chunks/3EIGH73D.js";
46
+ } from "./__chunks/DZ24E43J.js";
47
47
  import {
48
48
  flushMicrotasks,
49
49
  nextFrame,
50
50
  wrapAsync
51
- } from "./__chunks/7I2TICIC.js";
51
+ } from "./__chunks/HFG3HB6M.js";
52
52
  import {
53
53
  __spreadProps,
54
54
  __spreadValues
55
- } from "./__chunks/Q65FZOE2.js";
55
+ } from "./__chunks/SM5ASDQ3.js";
56
56
 
57
57
  // src/react.tsx
58
- import { StrictMode } from "react";
59
58
  import * as ReactTestingLibrary from "@testing-library/react";
59
+ import { StrictMode } from "react";
60
60
  import { jsx } from "react/jsx-runtime";
61
+ function wrapRender(renderFn) {
62
+ return wrapAsync(async () => {
63
+ const output = renderFn();
64
+ await flushMicrotasks();
65
+ await nextFrame();
66
+ await flushMicrotasks();
67
+ return output;
68
+ });
69
+ }
61
70
  async function render2(ui, options) {
62
71
  const wrapper = (props) => {
63
72
  const Wrapper = options == null ? void 0 : options.wrapper;
64
73
  const element = Wrapper ? /* @__PURE__ */ jsx(Wrapper, __spreadValues({}, props)) : props.children;
65
- if (!(options == null ? void 0 : options.strictMode))
66
- return element;
74
+ if (!(options == null ? void 0 : options.strictMode)) return element;
67
75
  return /* @__PURE__ */ jsx(StrictMode, { children: element });
68
76
  };
69
- return wrapAsync(async () => {
70
- const { unmount } = ReactTestingLibrary.render(ui, __spreadProps(__spreadValues({}, options), { wrapper }));
71
- await flushMicrotasks();
72
- await nextFrame();
73
- await flushMicrotasks();
74
- return unmount;
77
+ return wrapRender(() => {
78
+ const { unmount, rerender } = ReactTestingLibrary.render(ui, __spreadProps(__spreadValues({}, options), {
79
+ wrapper
80
+ }));
81
+ return {
82
+ unmount,
83
+ rerender: (newUi) => wrapRender(() => rerender(newUi))
84
+ };
75
85
  });
76
86
  }
77
87
  export {
package/esm/select.js CHANGED
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  select
4
- } from "./__chunks/QDVGEIL5.js";
5
- import "./__chunks/V36IYEJN.js";
6
- import "./__chunks/AVTGTEGG.js";
7
- import "./__chunks/LRKW54RD.js";
8
- import "./__chunks/QE2YCTHV.js";
9
- import "./__chunks/VD2VFA32.js";
10
- import "./__chunks/JIRMKL2I.js";
11
- import "./__chunks/3EIGH73D.js";
12
- import "./__chunks/7I2TICIC.js";
13
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/EMPG4BYT.js";
5
+ import "./__chunks/ZPXIP5WW.js";
6
+ import "./__chunks/2TPVB4MR.js";
7
+ import "./__chunks/VMVRY4TL.js";
8
+ import "./__chunks/HI4LQVNU.js";
9
+ import "./__chunks/HO5N5GTX.js";
10
+ import "./__chunks/7NQ5CXYI.js";
11
+ import "./__chunks/DZ24E43J.js";
12
+ import "./__chunks/HFG3HB6M.js";
13
+ import "./__chunks/SM5ASDQ3.js";
14
14
  export {
15
15
  select
16
16
  };
package/esm/sleep.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  sleep
4
- } from "./__chunks/3EIGH73D.js";
5
- import "./__chunks/7I2TICIC.js";
6
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/DZ24E43J.js";
5
+ import "./__chunks/HFG3HB6M.js";
6
+ import "./__chunks/SM5ASDQ3.js";
7
7
  export {
8
8
  sleep
9
9
  };
package/esm/tap.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  tap
4
- } from "./__chunks/MLBZISHH.js";
5
- import "./__chunks/7Y66O5SI.js";
6
- import "./__chunks/V36IYEJN.js";
7
- import "./__chunks/AVTGTEGG.js";
8
- import "./__chunks/LRKW54RD.js";
9
- import "./__chunks/QE2YCTHV.js";
10
- import "./__chunks/VD2VFA32.js";
11
- import "./__chunks/JIRMKL2I.js";
12
- import "./__chunks/3EIGH73D.js";
13
- import "./__chunks/7I2TICIC.js";
14
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/NSFKY4TP.js";
5
+ import "./__chunks/DHZBG4QM.js";
6
+ import "./__chunks/ZPXIP5WW.js";
7
+ import "./__chunks/2TPVB4MR.js";
8
+ import "./__chunks/VMVRY4TL.js";
9
+ import "./__chunks/HI4LQVNU.js";
10
+ import "./__chunks/HO5N5GTX.js";
11
+ import "./__chunks/7NQ5CXYI.js";
12
+ import "./__chunks/DZ24E43J.js";
13
+ import "./__chunks/HFG3HB6M.js";
14
+ import "./__chunks/SM5ASDQ3.js";
15
15
  export {
16
16
  tap
17
17
  };
package/esm/type.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  type
4
- } from "./__chunks/VVYOYAEF.js";
5
- import "./__chunks/VD2VFA32.js";
6
- import "./__chunks/JIRMKL2I.js";
7
- import "./__chunks/3EIGH73D.js";
8
- import "./__chunks/7I2TICIC.js";
9
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/UQRVXJ7Z.js";
5
+ import "./__chunks/HO5N5GTX.js";
6
+ import "./__chunks/7NQ5CXYI.js";
7
+ import "./__chunks/DZ24E43J.js";
8
+ import "./__chunks/HFG3HB6M.js";
9
+ import "./__chunks/SM5ASDQ3.js";
10
10
  export {
11
11
  type
12
12
  };
package/esm/wait-for.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  waitFor
4
- } from "./__chunks/G2JU2LVB.js";
5
- import "./__chunks/7I2TICIC.js";
6
- import "./__chunks/Q65FZOE2.js";
4
+ } from "./__chunks/SB7WYA2U.js";
5
+ import "./__chunks/HFG3HB6M.js";
6
+ import "./__chunks/SM5ASDQ3.js";
7
7
  export {
8
8
  waitFor
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariakit/test",
3
- "version": "0.3.15",
3
+ "version": "0.4.0",
4
4
  "description": "Ariakit test utils",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/diegohaz"
21
21
  },
22
22
  "scripts": {
23
- "lint": "eslint . --ext js,ts,tsx",
23
+ "lint": "biome check .",
24
24
  "build": "node ../../scripts/build/build.js",
25
25
  "clean": "node ../../scripts/build/clean.js"
26
26
  },
@@ -29,13 +29,13 @@
29
29
  "react"
30
30
  ],
31
31
  "dependencies": {
32
- "@ariakit/core": "0.4.6",
32
+ "@ariakit/core": "0.4.7",
33
33
  "@testing-library/dom": "^8.0.0 || ^9.0.0 || ^10.0.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@playwright/test": "^1.27.0",
37
- "@testing-library/react": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
38
- "react": "^17.0.0 || ^18.0.0"
37
+ "@testing-library/react": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
38
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@playwright/test": {
package/.eslintignore DELETED
@@ -1,6 +0,0 @@
1
- cjs
2
- esm
3
- ts
4
- umd
5
- coverage
6
- node_modules