@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/cjs/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/cjs/query.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _KRKGFFBKcjs = require('./__chunks/KRKGFFBK.cjs');
|
|
6
6
|
require('./__chunks/ERFCHS75.cjs');
|
|
7
|
-
require('./__chunks/
|
|
7
|
+
require('./__chunks/DOXEES2I.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.q =
|
|
11
|
+
exports.q = _KRKGFFBKcjs.q; exports.query = _KRKGFFBKcjs.query;
|
package/cjs/query.d.cts
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/cjs/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/cjs/react.cjs
CHANGED
|
@@ -2,76 +2,86 @@
|
|
|
2
2
|
require('./__chunks/I2BROIQW.cjs');
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _6LDGWG7Tcjs = require('./__chunks/6LDGWG7T.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _QOXIFOCWcjs = require('./__chunks/QOXIFOCW.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _4TS37S3Qcjs = require('./__chunks/4TS37S3Q.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _JFCVJ4KUcjs = require('./__chunks/JFCVJ4KU.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _LJ2IERQFcjs = require('./__chunks/LJ2IERQF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _GFFCFEOCcjs = require('./__chunks/GFFCFEOC.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _AGLSU3Q2cjs = require('./__chunks/AGLSU3Q2.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _KRKGFFBKcjs = require('./__chunks/KRKGFFBK.cjs');
|
|
28
28
|
require('./__chunks/ERFCHS75.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _RKZYK2KKcjs = require('./__chunks/RKZYK2KK.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _QRXZHH5Lcjs = require('./__chunks/QRXZHH5L.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _6UE2XSIUcjs = require('./__chunks/6UE2XSIU.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _Z3RYFL2Tcjs = require('./__chunks/Z3RYFL2T.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _ELVRZW56cjs = require('./__chunks/ELVRZW56.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _WO6I3N3Ucjs = require('./__chunks/WO6I3N3U.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _AV5N3TNHcjs = require('./__chunks/AV5N3TNH.cjs');
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _DOXEES2Icjs = require('./__chunks/DOXEES2I.cjs');
|
|
56
56
|
|
|
57
57
|
// src/react.tsx
|
|
58
|
-
var _react = require('react');
|
|
59
|
-
var
|
|
58
|
+
var _react = require('@testing-library/react'); var ReactTestingLibrary = _interopRequireWildcard(_react);
|
|
59
|
+
var _react2 = require('react');
|
|
60
60
|
var _jsxruntime = require('react/jsx-runtime');
|
|
61
|
+
function wrapRender(renderFn) {
|
|
62
|
+
return _AV5N3TNHcjs.wrapAsync.call(void 0, async () => {
|
|
63
|
+
const output = renderFn();
|
|
64
|
+
await _AV5N3TNHcjs.flushMicrotasks.call(void 0, );
|
|
65
|
+
await _AV5N3TNHcjs.nextFrame.call(void 0, );
|
|
66
|
+
await _AV5N3TNHcjs.flushMicrotasks.call(void 0, );
|
|
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
|
-
const element = Wrapper ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Wrapper,
|
|
65
|
-
if (!(options == null ? void 0 : options.strictMode))
|
|
66
|
-
|
|
67
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.StrictMode, { children: element });
|
|
73
|
+
const element = Wrapper ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Wrapper, _DOXEES2Icjs.__spreadValues.call(void 0, {}, props)) : props.children;
|
|
74
|
+
if (!(options == null ? void 0 : options.strictMode)) return element;
|
|
75
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.StrictMode, { children: element });
|
|
68
76
|
};
|
|
69
|
-
return
|
|
70
|
-
const { unmount } = ReactTestingLibrary.render(ui,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
return wrapRender(() => {
|
|
78
|
+
const { unmount, rerender } = ReactTestingLibrary.render(ui, _DOXEES2Icjs.__spreadProps.call(void 0, _DOXEES2Icjs.__spreadValues.call(void 0, {}, options), {
|
|
79
|
+
wrapper
|
|
80
|
+
}));
|
|
81
|
+
return {
|
|
82
|
+
unmount,
|
|
83
|
+
rerender: (newUi) => wrapRender(() => rerender(newUi))
|
|
84
|
+
};
|
|
75
85
|
});
|
|
76
86
|
}
|
|
77
87
|
|
|
@@ -91,4 +101,4 @@ async function render2(ui, options) {
|
|
|
91
101
|
|
|
92
102
|
|
|
93
103
|
|
|
94
|
-
exports.blur =
|
|
104
|
+
exports.blur = _6UE2XSIUcjs.blur; exports.click = _4TS37S3Qcjs.click; exports.dispatch = _ELVRZW56cjs.dispatch; exports.focus = _Z3RYFL2Tcjs.focus; exports.hover = _AGLSU3Q2cjs.hover; exports.mouseDown = _GFFCFEOCcjs.mouseDown; exports.mouseUp = _LJ2IERQFcjs.mouseUp; exports.press = _RKZYK2KKcjs.press; exports.q = _KRKGFFBKcjs.q; exports.query = _KRKGFFBKcjs.query; exports.render = render2; exports.select = _JFCVJ4KUcjs.select; exports.sleep = _WO6I3N3Ucjs.sleep; exports.tap = _QOXIFOCWcjs.tap; exports.type = _QRXZHH5Lcjs.type; exports.waitFor = _6LDGWG7Tcjs.waitFor;
|
package/cjs/react.d.cts
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/cjs/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/cjs/select.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./__chunks/
|
|
6
|
-
require('./__chunks/
|
|
7
|
-
require('./__chunks/
|
|
8
|
-
require('./__chunks/
|
|
9
|
-
require('./__chunks/
|
|
10
|
-
require('./__chunks/
|
|
11
|
-
require('./__chunks/
|
|
12
|
-
require('./__chunks/
|
|
13
|
-
require('./__chunks/
|
|
4
|
+
var _JFCVJ4KUcjs = require('./__chunks/JFCVJ4KU.cjs');
|
|
5
|
+
require('./__chunks/LJ2IERQF.cjs');
|
|
6
|
+
require('./__chunks/GFFCFEOC.cjs');
|
|
7
|
+
require('./__chunks/AGLSU3Q2.cjs');
|
|
8
|
+
require('./__chunks/6UE2XSIU.cjs');
|
|
9
|
+
require('./__chunks/Z3RYFL2T.cjs');
|
|
10
|
+
require('./__chunks/ELVRZW56.cjs');
|
|
11
|
+
require('./__chunks/WO6I3N3U.cjs');
|
|
12
|
+
require('./__chunks/AV5N3TNH.cjs');
|
|
13
|
+
require('./__chunks/DOXEES2I.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.select =
|
|
16
|
+
exports.select = _JFCVJ4KUcjs.select;
|
package/cjs/sleep.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./__chunks/
|
|
6
|
-
require('./__chunks/
|
|
4
|
+
var _WO6I3N3Ucjs = require('./__chunks/WO6I3N3U.cjs');
|
|
5
|
+
require('./__chunks/AV5N3TNH.cjs');
|
|
6
|
+
require('./__chunks/DOXEES2I.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.sleep =
|
|
9
|
+
exports.sleep = _WO6I3N3Ucjs.sleep;
|
package/cjs/tap.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./__chunks/
|
|
6
|
-
require('./__chunks/
|
|
7
|
-
require('./__chunks/
|
|
8
|
-
require('./__chunks/
|
|
9
|
-
require('./__chunks/
|
|
10
|
-
require('./__chunks/
|
|
11
|
-
require('./__chunks/
|
|
12
|
-
require('./__chunks/
|
|
13
|
-
require('./__chunks/
|
|
14
|
-
require('./__chunks/
|
|
4
|
+
var _QOXIFOCWcjs = require('./__chunks/QOXIFOCW.cjs');
|
|
5
|
+
require('./__chunks/4TS37S3Q.cjs');
|
|
6
|
+
require('./__chunks/LJ2IERQF.cjs');
|
|
7
|
+
require('./__chunks/GFFCFEOC.cjs');
|
|
8
|
+
require('./__chunks/AGLSU3Q2.cjs');
|
|
9
|
+
require('./__chunks/6UE2XSIU.cjs');
|
|
10
|
+
require('./__chunks/Z3RYFL2T.cjs');
|
|
11
|
+
require('./__chunks/ELVRZW56.cjs');
|
|
12
|
+
require('./__chunks/WO6I3N3U.cjs');
|
|
13
|
+
require('./__chunks/AV5N3TNH.cjs');
|
|
14
|
+
require('./__chunks/DOXEES2I.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.tap =
|
|
17
|
+
exports.tap = _QOXIFOCWcjs.tap;
|
package/cjs/type.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./__chunks/
|
|
6
|
-
require('./__chunks/
|
|
7
|
-
require('./__chunks/
|
|
8
|
-
require('./__chunks/
|
|
9
|
-
require('./__chunks/
|
|
4
|
+
var _QRXZHH5Lcjs = require('./__chunks/QRXZHH5L.cjs');
|
|
5
|
+
require('./__chunks/Z3RYFL2T.cjs');
|
|
6
|
+
require('./__chunks/ELVRZW56.cjs');
|
|
7
|
+
require('./__chunks/WO6I3N3U.cjs');
|
|
8
|
+
require('./__chunks/AV5N3TNH.cjs');
|
|
9
|
+
require('./__chunks/DOXEES2I.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.type =
|
|
12
|
+
exports.type = _QRXZHH5Lcjs.type;
|