You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6f74e5e
Browse filesBrowse the repository at this point in the historyBrowse files
This error originated in "multi.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
76
+
The latest test that might've caused the error is "triggers two rejections and one uncaught exception". It might mean one of the following:
77
+
- The error was thrown, while Vitest was running this test.
78
+
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
79
+
</error>
80
+
</testcase>
81
+
<testcaseclassname="vitest unhandled errors"name="Unhandled Rejection: first rejection"time="...">
82
+
<errormessage="first rejection"type="Error">
83
+
Error: first rejection
84
+
❯ multi.test.ts:4:23
85
+
86
+
This error originated in "multi.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
87
+
The latest test that might've caused the error is "triggers two rejections and one uncaught exception". It might mean one of the following:
88
+
- The error was thrown, while Vitest was running this test.
89
+
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
90
+
</error>
91
+
</testcase>
92
+
<testcaseclassname="vitest unhandled errors"name="Unhandled Rejection: second rejection"time="...">
93
+
<errormessage="second rejection"type="Error">
94
+
Error: second rejection
95
+
❯ multi.test.ts:5:23
96
+
97
+
This error originated in "multi.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
98
+
The latest test that might've caused the error is "triggers two rejections and one uncaught exception". It might mean one of the following:
99
+
- The error was thrown, while Vitest was running this test.
100
+
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
This error originated in "error.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
182
+
</error>
183
+
</testcase>
184
+
</testsuite>
127
185
</testsuites>
128
186
"
129
187
`;
@@ -157,3 +215,42 @@ __test_stderr__
157
215
</testsuites>
158
216
"
159
217
`;
218
+
219
+
exports[`resolves unhandled errors to the owning project in a multi-project workspace 1`] = `
<testcaseclassname="vitest unhandled errors"file="space-1/test/reject.test.ts"name="Unhandled Rejection: rejection from space-1"time="...">
232
+
<errormessage="rejection from space-1"type="Error">
233
+
Error: rejection from space-1
234
+
❯ test/reject.test.ts:4:23
235
+
236
+
This error originated in "test/reject.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
237
+
The latest test that might've caused the error is "triggers a rejection from project 1". It might mean one of the following:
238
+
- The error was thrown, while Vitest was running this test.
239
+
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
240
+
</error>
241
+
</testcase>
242
+
<testcaseclassname="vitest unhandled errors"file="space-2/test/reject.test.ts"name="Unhandled Rejection: rejection from space-2"time="...">
243
+
<errormessage="rejection from space-2"type="Error">
244
+
Error: rejection from space-2
245
+
❯ test/reject.test.ts:4:23
246
+
247
+
This error originated in "test/reject.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
248
+
The latest test that might've caused the error is "triggers a rejection from project 2". It might mean one of the following:
249
+
- The error was thrown, while Vitest was running this test.
250
+
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
0 commit comments