We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b685c commit 24d6380Copy full SHA for 24d6380
packages/vitest/src/utils/collect.ts
@@ -65,9 +65,11 @@ function skipAllTasks(suite: Suite) {
65
function checkAllowOnly(task: TaskBase, allowOnly?: boolean) {
66
if (allowOnly)
67
return
68
+ const error = new Error('[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly argument to bypass this error')
69
task.result = {
70
state: 'fail',
- error: new Error('[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly argument to bypass this error'),
71
+ error,
72
+ errors: [error],
73
}
74
75
0 commit comments