@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.
- package/CHANGELOG.md +9 -0
- package/cjs/__chunks/{LBY37VXL.cjs → 4TS37S3Q.cjs} +34 -35
- package/cjs/__chunks/{LG7B6NOG.cjs → 6LDGWG7T.cjs} +2 -2
- package/cjs/__chunks/{CYMYDRLS.cjs → 6UE2XSIU.cjs} +8 -11
- package/cjs/__chunks/AGLSU3Q2.cjs +68 -0
- package/cjs/__chunks/{BXOTZFAK.cjs → AV5N3TNH.cjs} +7 -14
- package/cjs/__chunks/{VD3ERVOF.cjs → ELVRZW56.cjs} +3 -3
- package/cjs/__chunks/{3BQXN3A5.cjs → GFFCFEOC.cjs} +13 -14
- package/cjs/__chunks/{IWPK655Z.cjs → JFCVJ4KU.cjs} +20 -24
- package/cjs/__chunks/{BIB7E6LN.cjs → KRKGFFBK.cjs} +10 -16
- package/cjs/__chunks/{QCXNVFD7.cjs → LJ2IERQF.cjs} +8 -10
- package/cjs/__chunks/{22RRPVHJ.cjs → QOXIFOCW.cjs} +2 -2
- package/cjs/__chunks/{ZNASNKOZ.cjs → QRXZHH5L.cjs} +22 -29
- package/cjs/__chunks/{DJWEA66K.cjs → RKZYK2KK.cjs} +30 -34
- package/cjs/__chunks/WO6I3N3U.cjs +20 -0
- package/cjs/__chunks/{IZMYJH6V.cjs → Z3RYFL2T.cjs} +7 -9
- package/cjs/blur.cjs +5 -5
- package/cjs/click.cjs +11 -11
- package/cjs/dispatch.cjs +4 -4
- package/cjs/focus.cjs +5 -5
- package/cjs/hover.cjs +6 -6
- package/cjs/index.cjs +17 -17
- package/cjs/mouse-down.cjs +7 -7
- package/cjs/mouse-up.cjs +5 -5
- package/cjs/playwright.cjs +2 -2
- package/cjs/press.cjs +9 -9
- package/cjs/press.d.cts +15 -15
- package/cjs/press.d.ts +15 -15
- package/cjs/query.cjs +3 -3
- package/cjs/query.d.cts +33 -32
- package/cjs/query.d.ts +33 -32
- package/cjs/react.cjs +39 -29
- package/cjs/react.d.cts +5 -2
- package/cjs/react.d.ts +5 -2
- package/cjs/select.cjs +11 -11
- package/cjs/sleep.cjs +4 -4
- package/cjs/tap.cjs +12 -12
- package/cjs/type.cjs +7 -7
- package/cjs/wait-for.cjs +4 -4
- package/esm/__chunks/{AVTGTEGG.js → 2TPVB4MR.js} +7 -8
- package/esm/__chunks/{JIRMKL2I.js → 7NQ5CXYI.js} +1 -1
- package/esm/__chunks/{7Y66O5SI.js → DHZBG4QM.js} +18 -19
- package/esm/__chunks/{3EIGH73D.js → DZ24E43J.js} +1 -1
- package/esm/__chunks/{QDVGEIL5.js → EMPG4BYT.js} +11 -15
- package/esm/__chunks/{6GDQHEBE.js → G32GEXRJ.js} +7 -13
- package/esm/__chunks/{7I2TICIC.js → HFG3HB6M.js} +7 -14
- package/esm/__chunks/{QE2YCTHV.js → HI4LQVNU.js} +5 -8
- package/esm/__chunks/{VD2VFA32.js → HO5N5GTX.js} +4 -6
- package/esm/__chunks/{MLBZISHH.js → NSFKY4TP.js} +1 -1
- package/esm/__chunks/{G2JU2LVB.js → SB7WYA2U.js} +1 -1
- package/esm/__chunks/{VVYOYAEF.js → UQRVXJ7Z.js} +13 -20
- package/esm/__chunks/{LRKW54RD.js → VMVRY4TL.js} +5 -6
- package/esm/__chunks/{DMIPXMWG.js → W46IR3LA.js} +11 -15
- package/esm/__chunks/{V36IYEJN.js → ZPXIP5WW.js} +5 -7
- package/esm/blur.js +4 -4
- package/esm/click.js +10 -10
- package/esm/dispatch.js +3 -3
- package/esm/focus.js +4 -4
- package/esm/hover.js +5 -5
- package/esm/index.js +16 -16
- package/esm/mouse-down.js +6 -6
- package/esm/mouse-up.js +4 -4
- package/esm/playwright.js +1 -1
- package/esm/press.d.ts +15 -15
- package/esm/press.js +8 -8
- package/esm/query.d.ts +33 -32
- package/esm/query.js +2 -2
- package/esm/react.d.ts +5 -2
- package/esm/react.js +35 -25
- package/esm/select.js +10 -10
- package/esm/sleep.js +3 -3
- package/esm/tap.js +11 -11
- package/esm/type.js +6 -6
- package/esm/wait-for.js +3 -3
- package/package.json +5 -5
- package/.eslintignore +0 -6
- package/cjs/__chunks/HQ3KUD6F.cjs +0 -20
- package/cjs/__chunks/UWCNB4SR.cjs +0 -69
- /package/cjs/__chunks/{OVN5OYWK.cjs → DOXEES2I.cjs} +0 -0
- /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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
7
|
-
import "./__chunks/
|
|
8
|
-
import "./__chunks/
|
|
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/
|
|
5
|
+
} from "./__chunks/SB7WYA2U.js";
|
|
6
6
|
import {
|
|
7
7
|
tap
|
|
8
|
-
} from "./__chunks/
|
|
8
|
+
} from "./__chunks/NSFKY4TP.js";
|
|
9
9
|
import {
|
|
10
10
|
click
|
|
11
|
-
} from "./__chunks/
|
|
11
|
+
} from "./__chunks/DHZBG4QM.js";
|
|
12
12
|
import {
|
|
13
13
|
select
|
|
14
|
-
} from "./__chunks/
|
|
14
|
+
} from "./__chunks/EMPG4BYT.js";
|
|
15
15
|
import {
|
|
16
16
|
mouseUp
|
|
17
|
-
} from "./__chunks/
|
|
17
|
+
} from "./__chunks/ZPXIP5WW.js";
|
|
18
18
|
import {
|
|
19
19
|
mouseDown
|
|
20
|
-
} from "./__chunks/
|
|
20
|
+
} from "./__chunks/2TPVB4MR.js";
|
|
21
21
|
import {
|
|
22
22
|
hover
|
|
23
|
-
} from "./__chunks/
|
|
23
|
+
} from "./__chunks/VMVRY4TL.js";
|
|
24
24
|
import {
|
|
25
25
|
q,
|
|
26
26
|
query
|
|
27
|
-
} from "./__chunks/
|
|
27
|
+
} from "./__chunks/G32GEXRJ.js";
|
|
28
28
|
import "./__chunks/CWTUOQ5Z.js";
|
|
29
29
|
import {
|
|
30
30
|
press
|
|
31
|
-
} from "./__chunks/
|
|
31
|
+
} from "./__chunks/W46IR3LA.js";
|
|
32
32
|
import {
|
|
33
33
|
type
|
|
34
|
-
} from "./__chunks/
|
|
34
|
+
} from "./__chunks/UQRVXJ7Z.js";
|
|
35
35
|
import {
|
|
36
36
|
blur
|
|
37
|
-
} from "./__chunks/
|
|
37
|
+
} from "./__chunks/HI4LQVNU.js";
|
|
38
38
|
import {
|
|
39
39
|
focus
|
|
40
|
-
} from "./__chunks/
|
|
40
|
+
} from "./__chunks/HO5N5GTX.js";
|
|
41
41
|
import {
|
|
42
42
|
dispatch
|
|
43
|
-
} from "./__chunks/
|
|
43
|
+
} from "./__chunks/7NQ5CXYI.js";
|
|
44
44
|
import {
|
|
45
45
|
sleep
|
|
46
|
-
} from "./__chunks/
|
|
47
|
-
import "./__chunks/
|
|
48
|
-
import "./__chunks/
|
|
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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
7
|
-
import "./__chunks/
|
|
8
|
-
import "./__chunks/
|
|
9
|
-
import "./__chunks/
|
|
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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
7
|
-
import "./__chunks/
|
|
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
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
|
|
4
|
-
var Backspace: (element?: Element | null
|
|
5
|
-
var Delete: (element?: Element | null
|
|
6
|
-
var Tab: (element?: Element | null
|
|
7
|
-
var ShiftTab: (element?: Element | null
|
|
8
|
-
var Enter: (element?: Element | null
|
|
9
|
-
var Space: (element?: Element | null
|
|
10
|
-
var ArrowUp: (element?: Element | null
|
|
11
|
-
var ArrowRight: (element?: Element | null
|
|
12
|
-
var ArrowDown: (element?: Element | null
|
|
13
|
-
var ArrowLeft: (element?: Element | null
|
|
14
|
-
var End: (element?: Element | null
|
|
15
|
-
var Home: (element?: Element | null
|
|
16
|
-
var PageUp: (element?: Element | null
|
|
17
|
-
var PageDown: (element?: Element | null
|
|
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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
7
|
-
import "./__chunks/
|
|
8
|
-
import "./__chunks/
|
|
9
|
-
import "./__chunks/
|
|
10
|
-
import "./__chunks/
|
|
11
|
-
import "./__chunks/
|
|
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
|
|
4
|
-
all: (<
|
|
5
|
-
wait: (<
|
|
6
|
-
ensure: (<
|
|
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: (<
|
|
9
|
-
all: (<
|
|
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: (<
|
|
12
|
-
all: (<
|
|
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: (<
|
|
16
|
-
all: (<
|
|
17
|
-
wait: (<
|
|
18
|
-
ensure: (<
|
|
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: (<
|
|
21
|
-
all: (<
|
|
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: (<
|
|
24
|
-
all: (<
|
|
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
|
|
1999
|
-
all: (<
|
|
2000
|
-
wait: (<
|
|
2001
|
-
ensure: (<
|
|
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: (<
|
|
2004
|
-
all: (<
|
|
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: (<
|
|
2007
|
-
all: (<
|
|
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: (<
|
|
2011
|
-
all: (<
|
|
2012
|
-
wait: (<
|
|
2013
|
-
ensure: (<
|
|
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: (<
|
|
2016
|
-
all: (<
|
|
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: (<
|
|
2019
|
-
all: (<
|
|
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
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<
|
|
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/
|
|
5
|
+
} from "./__chunks/SB7WYA2U.js";
|
|
6
6
|
import {
|
|
7
7
|
tap
|
|
8
|
-
} from "./__chunks/
|
|
8
|
+
} from "./__chunks/NSFKY4TP.js";
|
|
9
9
|
import {
|
|
10
10
|
click
|
|
11
|
-
} from "./__chunks/
|
|
11
|
+
} from "./__chunks/DHZBG4QM.js";
|
|
12
12
|
import {
|
|
13
13
|
select
|
|
14
|
-
} from "./__chunks/
|
|
14
|
+
} from "./__chunks/EMPG4BYT.js";
|
|
15
15
|
import {
|
|
16
16
|
mouseUp
|
|
17
|
-
} from "./__chunks/
|
|
17
|
+
} from "./__chunks/ZPXIP5WW.js";
|
|
18
18
|
import {
|
|
19
19
|
mouseDown
|
|
20
|
-
} from "./__chunks/
|
|
20
|
+
} from "./__chunks/2TPVB4MR.js";
|
|
21
21
|
import {
|
|
22
22
|
hover
|
|
23
|
-
} from "./__chunks/
|
|
23
|
+
} from "./__chunks/VMVRY4TL.js";
|
|
24
24
|
import {
|
|
25
25
|
q,
|
|
26
26
|
query
|
|
27
|
-
} from "./__chunks/
|
|
27
|
+
} from "./__chunks/G32GEXRJ.js";
|
|
28
28
|
import "./__chunks/CWTUOQ5Z.js";
|
|
29
29
|
import {
|
|
30
30
|
press
|
|
31
|
-
} from "./__chunks/
|
|
31
|
+
} from "./__chunks/W46IR3LA.js";
|
|
32
32
|
import {
|
|
33
33
|
type
|
|
34
|
-
} from "./__chunks/
|
|
34
|
+
} from "./__chunks/UQRVXJ7Z.js";
|
|
35
35
|
import {
|
|
36
36
|
blur
|
|
37
|
-
} from "./__chunks/
|
|
37
|
+
} from "./__chunks/HI4LQVNU.js";
|
|
38
38
|
import {
|
|
39
39
|
focus
|
|
40
|
-
} from "./__chunks/
|
|
40
|
+
} from "./__chunks/HO5N5GTX.js";
|
|
41
41
|
import {
|
|
42
42
|
dispatch
|
|
43
|
-
} from "./__chunks/
|
|
43
|
+
} from "./__chunks/7NQ5CXYI.js";
|
|
44
44
|
import {
|
|
45
45
|
sleep
|
|
46
|
-
} from "./__chunks/
|
|
46
|
+
} from "./__chunks/DZ24E43J.js";
|
|
47
47
|
import {
|
|
48
48
|
flushMicrotasks,
|
|
49
49
|
nextFrame,
|
|
50
50
|
wrapAsync
|
|
51
|
-
} from "./__chunks/
|
|
51
|
+
} from "./__chunks/HFG3HB6M.js";
|
|
52
52
|
import {
|
|
53
53
|
__spreadProps,
|
|
54
54
|
__spreadValues
|
|
55
|
-
} from "./__chunks/
|
|
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
|
|
70
|
-
const { unmount } = ReactTestingLibrary.render(ui, __spreadProps(__spreadValues({}, options), {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
7
|
-
import "./__chunks/
|
|
8
|
-
import "./__chunks/
|
|
9
|
-
import "./__chunks/
|
|
10
|
-
import "./__chunks/
|
|
11
|
-
import "./__chunks/
|
|
12
|
-
import "./__chunks/
|
|
13
|
-
import "./__chunks/
|
|
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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
7
|
-
import "./__chunks/
|
|
8
|
-
import "./__chunks/
|
|
9
|
-
import "./__chunks/
|
|
10
|
-
import "./__chunks/
|
|
11
|
-
import "./__chunks/
|
|
12
|
-
import "./__chunks/
|
|
13
|
-
import "./__chunks/
|
|
14
|
-
import "./__chunks/
|
|
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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
7
|
-
import "./__chunks/
|
|
8
|
-
import "./__chunks/
|
|
9
|
-
import "./__chunks/
|
|
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/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
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
|
+
"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": "
|
|
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.
|
|
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": {
|