@ariakit/test 0.4.10 → 0.4.12
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/{4P2TRHCD.cjs → 6RS5IIND.cjs} +2 -6
- package/cjs/__chunks/{EG24EIKR.cjs → E652CU4S.cjs} +9 -12
- package/cjs/__chunks/{ANKVPRYL.cjs → FXNLNUN4.cjs} +1 -4
- package/cjs/__chunks/{XODU6QCY.cjs → GN27CO5F.cjs} +2 -2
- package/cjs/__chunks/{AYPQCP2P.cjs → JBTD632X.cjs} +8 -11
- package/cjs/__chunks/{KKOPNQIH.cjs → NAXSUG7D.cjs} +8 -10
- package/cjs/__chunks/{ML4UXKC3.cjs → PSUVKPBQ.cjs} +1 -4
- package/cjs/__chunks/{UYJAT53J.cjs → PU4UTGCJ.cjs} +14 -14
- package/cjs/__chunks/{EA2M4PHP.cjs → YHTBQKQP.cjs} +8 -11
- package/cjs/blur.cjs +0 -1
- package/cjs/click.cjs +5 -6
- package/cjs/dispatch.cjs +0 -1
- package/cjs/focus.cjs +0 -1
- package/cjs/hover.cjs +2 -3
- package/cjs/index.cjs +10 -11
- package/cjs/mouse-down.cjs +2 -3
- package/cjs/mouse-up.cjs +2 -3
- package/cjs/playwright.cjs +1 -4
- package/cjs/press.cjs +3 -4
- package/cjs/query.cjs +2 -3
- package/cjs/query.d.cts +1 -1
- package/cjs/query.d.ts +1 -1
- package/cjs/react.cjs +14 -17
- package/cjs/select.cjs +5 -6
- package/cjs/sleep.cjs +0 -1
- package/cjs/tap.cjs +6 -7
- package/cjs/type.cjs +2 -3
- package/cjs/wait-for.cjs +0 -1
- package/esm/__chunks/{4VR4URFV.js → 22KDRPLA.js} +14 -14
- package/esm/__chunks/{433S5VGJ.js → 3NBNNSLU.js} +4 -7
- package/esm/__chunks/{DFUW3DFA.js → 5P7UPGUI.js} +8 -10
- package/esm/__chunks/{RTBDUQHD.js → CLBHQ7IU.js} +6 -9
- package/esm/__chunks/{BG5U5JFH.js → CLGZ6LZL.js} +2 -6
- package/esm/__chunks/{NR24PD4G.js → DHY47Z5Z.js} +1 -4
- package/esm/__chunks/{CSF4U66P.js → LFDLFIXJ.js} +1 -1
- package/esm/__chunks/{Z7WVAAXJ.js → SU4WSQ6S.js} +1 -4
- package/esm/__chunks/{OLDQVNUU.js → XHCPZXKA.js} +4 -7
- package/esm/blur.js +0 -1
- package/esm/click.js +4 -5
- package/esm/dispatch.js +0 -1
- package/esm/focus.js +0 -1
- package/esm/hover.js +1 -2
- package/esm/index.js +9 -10
- package/esm/mouse-down.js +1 -2
- package/esm/mouse-up.js +1 -2
- package/esm/playwright.js +1 -4
- package/esm/press.js +2 -3
- package/esm/query.d.ts +1 -1
- package/esm/query.js +1 -2
- package/esm/react.js +13 -16
- package/esm/select.js +4 -5
- package/esm/sleep.js +0 -1
- package/esm/tap.js +5 -6
- package/esm/type.js +1 -2
- package/esm/wait-for.js +0 -1
- package/license +1 -1
- package/package.json +2 -2
- package/cjs/__chunks/E4OOGVMW.cjs +0 -24
- package/esm/__chunks/SM5ASDQ3.js +0 -25
package/esm/press.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
press
|
|
4
|
-
} from "./__chunks/
|
|
5
|
-
import "./__chunks/
|
|
4
|
+
} from "./__chunks/XHCPZXKA.js";
|
|
5
|
+
import "./__chunks/22KDRPLA.js";
|
|
6
6
|
import "./__chunks/DZ24E43J.js";
|
|
7
7
|
import "./__chunks/SOWA2DKF.js";
|
|
8
8
|
import "./__chunks/4SG6SLGL.js";
|
|
9
9
|
import "./__chunks/LK25WCYN.js";
|
|
10
10
|
import "./__chunks/HFG3HB6M.js";
|
|
11
|
-
import "./__chunks/SM5ASDQ3.js";
|
|
12
11
|
export {
|
|
13
12
|
press
|
|
14
13
|
};
|
package/esm/query.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { queries as baseQueries } from "@testing-library/dom";
|
|
2
1
|
import type { ByRoleOptions } from "@testing-library/dom";
|
|
2
|
+
import { queries as baseQueries } from "@testing-library/dom";
|
|
3
3
|
export declare const query: {
|
|
4
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
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[]) & {
|
package/esm/query.js
CHANGED
package/esm/react.js
CHANGED
|
@@ -5,33 +5,33 @@ import {
|
|
|
5
5
|
} from "./__chunks/SB7WYA2U.js";
|
|
6
6
|
import {
|
|
7
7
|
press
|
|
8
|
-
} from "./__chunks/
|
|
8
|
+
} from "./__chunks/XHCPZXKA.js";
|
|
9
9
|
import {
|
|
10
10
|
q,
|
|
11
11
|
query
|
|
12
|
-
} from "./__chunks/
|
|
12
|
+
} from "./__chunks/5P7UPGUI.js";
|
|
13
13
|
import "./__chunks/CWTUOQ5Z.js";
|
|
14
14
|
import {
|
|
15
15
|
select
|
|
16
|
-
} from "./__chunks/
|
|
16
|
+
} from "./__chunks/3NBNNSLU.js";
|
|
17
17
|
import {
|
|
18
18
|
tap
|
|
19
|
-
} from "./__chunks/
|
|
19
|
+
} from "./__chunks/LFDLFIXJ.js";
|
|
20
20
|
import {
|
|
21
21
|
type
|
|
22
|
-
} from "./__chunks/
|
|
22
|
+
} from "./__chunks/22KDRPLA.js";
|
|
23
23
|
import {
|
|
24
24
|
click
|
|
25
|
-
} from "./__chunks/
|
|
25
|
+
} from "./__chunks/CLBHQ7IU.js";
|
|
26
26
|
import {
|
|
27
27
|
hover
|
|
28
|
-
} from "./__chunks/
|
|
28
|
+
} from "./__chunks/CLGZ6LZL.js";
|
|
29
29
|
import {
|
|
30
30
|
sleep
|
|
31
31
|
} from "./__chunks/DZ24E43J.js";
|
|
32
32
|
import {
|
|
33
33
|
mouseDown
|
|
34
|
-
} from "./__chunks/
|
|
34
|
+
} from "./__chunks/SU4WSQ6S.js";
|
|
35
35
|
import {
|
|
36
36
|
blur
|
|
37
37
|
} from "./__chunks/SOWA2DKF.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./__chunks/4SG6SLGL.js";
|
|
41
41
|
import {
|
|
42
42
|
mouseUp
|
|
43
|
-
} from "./__chunks/
|
|
43
|
+
} from "./__chunks/DHY47Z5Z.js";
|
|
44
44
|
import {
|
|
45
45
|
dispatch
|
|
46
46
|
} from "./__chunks/LK25WCYN.js";
|
|
@@ -49,10 +49,6 @@ import {
|
|
|
49
49
|
nextFrame,
|
|
50
50
|
wrapAsync
|
|
51
51
|
} from "./__chunks/HFG3HB6M.js";
|
|
52
|
-
import {
|
|
53
|
-
__spreadProps,
|
|
54
|
-
__spreadValues
|
|
55
|
-
} from "./__chunks/SM5ASDQ3.js";
|
|
56
52
|
|
|
57
53
|
// src/react.tsx
|
|
58
54
|
import * as ReactTestingLibrary from "@testing-library/react";
|
|
@@ -70,14 +66,15 @@ function wrapRender(renderFn) {
|
|
|
70
66
|
async function render2(ui, options) {
|
|
71
67
|
const wrapper = (props) => {
|
|
72
68
|
const Wrapper = options == null ? void 0 : options.wrapper;
|
|
73
|
-
const element = Wrapper ? /* @__PURE__ */ jsx(Wrapper,
|
|
69
|
+
const element = Wrapper ? /* @__PURE__ */ jsx(Wrapper, { ...props }) : props.children;
|
|
74
70
|
if (!(options == null ? void 0 : options.strictMode)) return element;
|
|
75
71
|
return /* @__PURE__ */ jsx(StrictMode, { children: element });
|
|
76
72
|
};
|
|
77
73
|
return wrapRender(() => {
|
|
78
|
-
const { unmount, rerender } = ReactTestingLibrary.render(ui,
|
|
74
|
+
const { unmount, rerender } = ReactTestingLibrary.render(ui, {
|
|
75
|
+
...options,
|
|
79
76
|
wrapper
|
|
80
|
-
})
|
|
77
|
+
});
|
|
81
78
|
return {
|
|
82
79
|
unmount,
|
|
83
80
|
rerender: (newUi) => wrapRender(() => rerender(newUi))
|
package/esm/select.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select
|
|
4
|
-
} from "./__chunks/
|
|
5
|
-
import "./__chunks/
|
|
4
|
+
} from "./__chunks/3NBNNSLU.js";
|
|
5
|
+
import "./__chunks/CLGZ6LZL.js";
|
|
6
6
|
import "./__chunks/DZ24E43J.js";
|
|
7
|
-
import "./__chunks/
|
|
7
|
+
import "./__chunks/SU4WSQ6S.js";
|
|
8
8
|
import "./__chunks/SOWA2DKF.js";
|
|
9
9
|
import "./__chunks/4SG6SLGL.js";
|
|
10
|
-
import "./__chunks/
|
|
10
|
+
import "./__chunks/DHY47Z5Z.js";
|
|
11
11
|
import "./__chunks/LK25WCYN.js";
|
|
12
12
|
import "./__chunks/HFG3HB6M.js";
|
|
13
|
-
import "./__chunks/SM5ASDQ3.js";
|
|
14
13
|
export {
|
|
15
14
|
select
|
|
16
15
|
};
|
package/esm/sleep.js
CHANGED
package/esm/tap.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tap
|
|
4
|
-
} from "./__chunks/
|
|
5
|
-
import "./__chunks/
|
|
6
|
-
import "./__chunks/
|
|
4
|
+
} from "./__chunks/LFDLFIXJ.js";
|
|
5
|
+
import "./__chunks/CLBHQ7IU.js";
|
|
6
|
+
import "./__chunks/CLGZ6LZL.js";
|
|
7
7
|
import "./__chunks/DZ24E43J.js";
|
|
8
|
-
import "./__chunks/
|
|
8
|
+
import "./__chunks/SU4WSQ6S.js";
|
|
9
9
|
import "./__chunks/SOWA2DKF.js";
|
|
10
10
|
import "./__chunks/4SG6SLGL.js";
|
|
11
|
-
import "./__chunks/
|
|
11
|
+
import "./__chunks/DHY47Z5Z.js";
|
|
12
12
|
import "./__chunks/LK25WCYN.js";
|
|
13
13
|
import "./__chunks/HFG3HB6M.js";
|
|
14
|
-
import "./__chunks/SM5ASDQ3.js";
|
|
15
14
|
export {
|
|
16
15
|
tap
|
|
17
16
|
};
|
package/esm/type.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
type
|
|
4
|
-
} from "./__chunks/
|
|
4
|
+
} from "./__chunks/22KDRPLA.js";
|
|
5
5
|
import "./__chunks/DZ24E43J.js";
|
|
6
6
|
import "./__chunks/4SG6SLGL.js";
|
|
7
7
|
import "./__chunks/LK25WCYN.js";
|
|
8
8
|
import "./__chunks/HFG3HB6M.js";
|
|
9
|
-
import "./__chunks/SM5ASDQ3.js";
|
|
10
9
|
export {
|
|
11
10
|
type
|
|
12
11
|
};
|
package/esm/wait-for.js
CHANGED
package/license
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariakit/test",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"description": "Ariakit test utils",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ariakit/core": "0.4.
|
|
32
|
+
"@ariakit/core": "0.4.17",
|
|
33
33
|
"@testing-library/dom": "^8.0.0 || ^9.0.0 || ^10.0.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.__spreadValues = __spreadValues; exports.__spreadProps = __spreadProps;
|
package/esm/__chunks/SM5ASDQ3.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
__spreadValues,
|
|
24
|
-
__spreadProps
|
|
25
|
-
};
|