-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_output_2.txt
More file actions
214 lines (167 loc) · 12 KB
/
test_output_2.txt
File metadata and controls
214 lines (167 loc) · 12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
> test
> vitest run
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90mC:/Users/heman/Downloads/form-engine-frontend[39m
[32m✓[39m src/App.test.tsx [2m([22m[2m1 test[22m[2m)[22m[32m 165[2mms[22m[39m
[32m✓[39m src/hooks/use-mobile.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 49[2mms[22m[39m
[32m✓[39m src/lib/auth-client.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 23[2mms[22m[39m
[32m✓[39m src/components/ui/badge.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[33m 1028[2mms[22m[39m
[33m[2m✓[22m[39m renders text content [33m 775[2mms[22m[39m
[32m✓[39m src/lib/utils.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 12[2mms[22m[39m
[32m✓[39m src/components/ui/button.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[33m 3213[2mms[22m[39m
[33m[2m✓[22m[39m renders children correctly [33m 2524[2mms[22m[39m
[33m[2m✓[22m[39m handles click events [33m 402[2mms[22m[39m
[32m✓[39m src/components/ui/complex-primitives.test.tsx [2m([22m[2m4 tests[22m[2m)[22m[33m 2613[2mms[22m[39m
[33m[2m✓[22m[39m renders and status reflects change [33m 2149[2mms[22m[39m
[32m✓[39m src/components/Header.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[33m 3265[2mms[22m[39m
[33m[2m✓[22m[39m renders the logo [33m 734[2mms[22m[39m
[33m[2m✓[22m[39m opens and closes the mobile menu [33m 2526[2mms[22m[39m
[32m✓[39m src/components/fields/field-items.test.tsx [2m([22m[2m2 tests[22m[2m)[22m[33m 3325[2mms[22m[39m
[33m[2m✓[22m[39m renders all field labels [33m 984[2mms[22m[39m
[33m[2m✓[22m[39m renders labels as buttons [33m 2327[2mms[22m[39m
[32m✓[39m src/components/ui/field.test.tsx [2m([22m[2m10 tests[22m[2m)[22m[33m 3442[2mms[22m[39m
[33m[2m✓[22m[39m renders with vertical orientation by default [33m 2589[2mms[22m[39m
[32m✓[39m src/components/ui/input.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[33m 4196[2mms[22m[39m
[33m[2m✓[22m[39m renders correctly with initial value [33m 3125[2mms[22m[39m
[33m[2m✓[22m[39m updates value on change [33m 873[2mms[22m[39m
[90mstderr[2m | src/components/app-sidebar.test.tsx[2m > [22m[2mAppSidebar[2m > [22m[2mrenders the sidebar with correct title
[22m[39mAn update to Transitioner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to Transitioner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to MatchesInner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to MatchesInner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to Transitioner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
[90mstderr[2m | src/components/app-sidebar.test.tsx[2m > [22m[2mAppSidebar[2m > [22m[2mrenders navigation links
[22m[39mAn update to Transitioner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to Transitioner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to MatchesInner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to MatchesInner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to Transitioner inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
[31m❯[39m src/components/app-sidebar.test.tsx [2m([22m[2m2 tests[22m[2m | [22m[31m2 failed[39m[2m)[22m[33m 558[2mms[22m[39m
[31m [31m×[31m renders the sidebar with correct title[39m[33m 506[2mms[22m[39m
[31m [31m×[31m renders navigation links[39m[32m 36[2mms[22m[39m
[32m✓[39m src/components/fields/field-preview.test.tsx [2m([22m[2m6 tests[22m[2m)[22m[33m 1729[2mms[22m[39m
[33m[2m✓[22m[39m calls onRemove when the trash icon is clicked [33m 1074[2mms[22m[39m
[32m✓[39m src/components/ui/primitives.test.tsx [2m([22m[2m6 tests[22m[2m)[22m[33m 1363[2mms[22m[39m
[33m[2m✓[22m[39m renders and handles toggle [33m 1154[2mms[22m[39m
[32m✓[39m src/components/editor-canvas.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[33m 1847[2mms[22m[39m
[33m[2m✓[22m[39m renders empty state when no fields are provided [33m 1487[2mms[22m[39m
[90mstdout[2m | src/components/editor-sidebar-tabs.test.tsx[2m > [22m[2mTabsLine[2m > [22m[2mcalls onFieldClick when a field is clicked
[22m[39mField button clicked: text
[32m✓[39m src/components/editor-sidebar-tabs.test.tsx [2m([22m[2m3 tests[22m[2m)[22m[33m 1952[2mms[22m[39m
[33m[2m✓[22m[39m renders the initial tab (Fields) correctly [33m 1335[2mms[22m[39m
[33m[2m✓[22m[39m switches tabs correctly [33m 421[2mms[22m[39m
[32m✓[39m src/components/field-properties.test.tsx [2m([22m[2m5 tests[22m[2m)[22m[33m 2572[2mms[22m[39m
[33m[2m✓[22m[39m renders with initial field values when open [33m 1275[2mms[22m[39m
[33m[2m✓[22m[39m updates state and calls onSave with new values [33m 1037[2mms[22m[39m
[31m⎯⎯⎯⎯⎯⎯⎯[39m[1m[41m Failed Tests 2 [49m[22m[31m⎯⎯⎯⎯⎯⎯⎯[39m
[41m[1m FAIL [22m[49m src/components/app-sidebar.test.tsx[2m > [22mAppSidebar[2m > [22mrenders the sidebar with correct title
[31m[1mTestingLibraryElementError[22m: Unable to find an element with the text: Form Builder. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
[36m<body>[31m
[36m<div>[31m
[36m<div[31m
[33mclass[31m=[32m"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full"[31m
[33mdata-slot[31m=[32m"sidebar-wrapper"[31m
[33mstyle[31m=[32m"--sidebar-width: 16rem; --sidebar-width-icon: 3rem;"[31m
[36m/>[31m
[36m</div>[31m
[36m</body>[31m[39m
[90m [2m❯[22m Object.getElementError node_modules/@testing-library/dom/dist/config.js:[2m37:19[22m[39m
[90m [2m❯[22m node_modules/@testing-library/dom/dist/query-helpers.js:[2m76:38[22m[39m
[90m [2m❯[22m node_modules/@testing-library/dom/dist/query-helpers.js:[2m52:17[22m[39m
[90m [2m❯[22m node_modules/@testing-library/dom/dist/query-helpers.js:[2m95:19[22m[39m
[36m [2m❯[22m src/components/app-sidebar.test.tsx:[2m48:23[22m[39m
[90m 46| [39m [33m<[39m[33m/[39m[33mSidebarProvider[39m[33m>[39m
[90m 47| [39m )[33m;[39m
[90m 48| [39m [34mexpect[39m(screen[33m.[39m[34mgetByText[39m([32m'Form Builder'[39m))[33m.[39m[34mtoBeInTheDocument[39m()[33m;[39m
[90m | [39m [31m^[39m
[90m 49| [39m })[33m;[39m
[90m 50| [39m
[31m[2m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯[22m[39m
[41m[1m FAIL [22m[49m src/components/app-sidebar.test.tsx[2m > [22mAppSidebar[2m > [22mrenders navigation links
[31m[1mTestingLibraryElementError[22m: Unable to find an element with the text: Dashboard. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
[36m<body>[31m
[36m<div>[31m
[36m<div[31m
[33mclass[31m=[32m"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full"[31m
[33mdata-slot[31m=[32m"sidebar-wrapper"[31m
[33mstyle[31m=[32m"--sidebar-width: 16rem; --sidebar-width-icon: 3rem;"[31m
[36m/>[31m
[36m</div>[31m
[36m</body>[31m[39m
[90m [2m❯[22m Object.getElementError node_modules/@testing-library/dom/dist/config.js:[2m37:19[22m[39m
[90m [2m❯[22m node_modules/@testing-library/dom/dist/query-helpers.js:[2m76:38[22m[39m
[90m [2m❯[22m node_modules/@testing-library/dom/dist/query-helpers.js:[2m52:17[22m[39m
[90m [2m❯[22m node_modules/@testing-library/dom/dist/query-helpers.js:[2m95:19[22m[39m
[36m [2m❯[22m src/components/app-sidebar.test.tsx:[2m58:23[22m[39m
[90m 56| [39m [33m<[39m[33m/[39m[33mSidebarProvider[39m[33m>[39m
[90m 57| [39m )[33m;[39m
[90m 58| [39m [34mexpect[39m(screen[33m.[39m[34mgetByText[39m([32m'Dashboard'[39m))[33m.[39m[34mtoBeInTheDocument[39m()[33m;[39m
[90m | [39m [31m^[39m
[90m 59| [39m [34mexpect[39m(screen[33m.[39m[34mgetByText[39m([32m'Editor'[39m))[33m.[39m[34mtoBeInTheDocument[39m()[33m;[39m
[90m 60| [39m [34mexpect[39m(screen[33m.[39m[34mgetByText[39m([32m'Analytics'[39m))[33m.[39m[34mtoBeInTheDocument[39m()[33m;[39m
[31m[2m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯[22m[39m
[2m Test Files [22m [1m[31m1 failed[39m[22m[2m | [22m[1m[32m16 passed[39m[22m[90m (17)[39m
[2m Tests [22m [1m[31m2 failed[39m[22m[2m | [22m[1m[32m65 passed[39m[22m[90m (67)[39m
[2m Start at [22m 00:10:55
[2m Duration [22m 17.66s[2m (transform 22.78s, setup 62.58s, import 68.68s, tests 31.35s, environment 37.15s)[22m