Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit f283af1

Browse files
committed
chore: fix test resolution
1 parent 0debf30 commit f283af1

File tree

19 files changed

+840
-5
lines changed

19 files changed

+840
-5
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
transformIgnorePatterns: ["/node_modules/(?!@popperjs/.*|lodash.)"],
1414
moduleNameMapper: {
1515
"^@/(.*)$": "<rootDir>/$1",
16-
"@chakra-ui/vue-test-utils": "<rootDir>/packages/test-utils/src/index.tsx",
16+
"@chakra-ui/vue-test-utils": "<rootDir>/packages/test-utils",
1717
},
1818
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
1919
snapshotSerializers: ["@chakra-ui/vue-test-utils/src/snapshot-serializer.ts"],
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should render properly 1`] = `
4+
<DocumentFragment>
5+
<!--[object Object]-->
6+
</DocumentFragment>
7+
`;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should render properly 1`] = `
4+
<DocumentFragment>
5+
<button
6+
aria-label="Close"
7+
class="chakra-icon-button css-1hx82n1"
8+
data-testid="closebutton"
9+
type="button"
10+
>
11+
<svg
12+
aria-hidden="true"
13+
class="chakra-icon css-13otjrl"
14+
focusable="false"
15+
viewBox="0 0 24 24"
16+
>
17+
<path
18+
d="M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"
19+
fill="currentColor"
20+
/>
21+
</svg>
22+
</button>
23+
</DocumentFragment>
24+
`;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should render properly 1`] = `
4+
<DocumentFragment>
5+
<code
6+
class="css-1b9x1mh"
7+
>
8+
hello world
9+
</code>
10+
<code
11+
class="css-1hzweom"
12+
>
13+
hello world, red
14+
</code>
15+
<code
16+
class="css-bri9l4"
17+
>
18+
hello world, green
19+
</code>
20+
<code
21+
class="css-1y46pxi"
22+
>
23+
hello world, yellow
24+
</code>
25+
<code
26+
class="css-1kx42k1"
27+
>
28+
hello world, teal
29+
</code>
30+
</DocumentFragment>
31+
`;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should toggle colormode 1`] = `
4+
<DocumentFragment>
5+
<div>
6+
<div
7+
data-testid="colormode"
8+
>
9+
light
10+
</div>
11+
<button
12+
data-testid="toggle"
13+
>
14+
Toggle color mode
15+
</button>
16+
</div>
17+
</DocumentFragment>
18+
`;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should render properly 1`] = `
4+
<DocumentFragment>
5+
<div
6+
data-testid="focus-lock-container"
7+
>
8+
<input
9+
data-testid="input"
10+
/>
11+
<input />
12+
<input />
13+
</div>
14+
</DocumentFragment>
15+
`;
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should render custom icon properly 1`] = `
4+
<DocumentFragment>
5+
<svg
6+
class="chakra-icon css-stgirh"
7+
focusable="false"
8+
viewBox="0 0 496 512"
9+
>
10+
<path
11+
d="M297.216 243.2c0 15.616-11.52 28.416-26.112 28.416-14.336 0-26.112-12.8-26.112-28.416s11.52-28.416 26.112-28.416c14.592 0 26.112 12.8 26.112 28.416zm-119.552-28.416c-14.592 0-26.112 12.8-26.112 28.416s11.776 28.416 26.112 28.416c14.592 0 26.112-12.8 26.112-28.416.256-15.616-11.52-28.416-26.112-28.416zM448 52.736V512c-64.494-56.994-43.868-38.128-118.784-107.776l13.568 47.36H52.48C23.552 451.584 0 428.032 0 398.848V52.736C0 23.552 23.552 0 52.48 0h343.04C424.448 0 448 23.552 448 52.736zm-72.96 242.688c0-82.432-36.864-149.248-36.864-149.248-36.864-27.648-71.936-26.88-71.936-26.88l-3.584 4.096c43.52 13.312 63.744 32.512 63.744 32.512-60.811-33.329-132.244-33.335-191.232-7.424-9.472 4.352-15.104 7.424-15.104 7.424s21.248-20.224 67.328-33.536l-2.56-3.072s-35.072-.768-71.936 26.88c0 0-36.864 66.816-36.864 149.248 0 0 21.504 37.12 78.08 38.912 0 0 9.472-11.52 17.152-21.248-32.512-9.728-44.8-30.208-44.8-30.208 3.766 2.636 9.976 6.053 10.496 6.4 43.21 24.198 104.588 32.126 159.744 8.96 8.96-3.328 18.944-8.192 29.44-15.104 0 0-12.8 20.992-46.336 30.464 7.68 9.728 16.896 20.736 16.896 20.736 56.576-1.792 78.336-38.912 78.336-38.912z"
12+
fa-key="3"
13+
fill="currentColor"
14+
/>
15+
</svg>
16+
</DocumentFragment>
17+
`;
18+
19+
exports[`should render properly 1`] = `
20+
<DocumentFragment>
21+
<svg
22+
class="chakra-icon css-13otjrl"
23+
focusable="false"
24+
viewBox="0 0 24 24"
25+
>
26+
27+
28+
<g
29+
stroke="currentColor"
30+
strokewidth="1.5"
31+
>
32+
33+
34+
<path
35+
d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
36+
fill="none"
37+
strokelinecap="round"
38+
/>
39+
40+
41+
<path
42+
d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
43+
fill="currentColor"
44+
strokelinecap="round"
45+
/>
46+
47+
48+
<circle
49+
cx="12"
50+
cy="12"
51+
fill="none"
52+
r="11.25"
53+
strokemiterlimit="10"
54+
/>
55+
56+
57+
</g>
58+
59+
60+
</svg>
61+
</DocumentFragment>
62+
`;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`<CInput /> should render properly 1`] = `
4+
<DocumentFragment>
5+
<input
6+
class="chakra-input css-juky0y"
7+
/>
8+
</DocumentFragment>
9+
`;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should render properly 1`] = `
4+
<DocumentFragment>
5+
<!--teleport start-->
6+
<!--teleport end-->
7+
</DocumentFragment>
8+
`;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`should render properly 1`] = `
4+
<DocumentFragment>
5+
<transition-stub>
6+
<!---->
7+
</transition-stub>
8+
</DocumentFragment>
9+
`;

0 commit comments

Comments
 (0)