Skip to content

Commit

Permalink
Update packages/vitest/src/runtime/collect.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 3, 2022
1 parent df4d7fb commit 674c035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/runtime/collect.ts
Expand Up @@ -133,7 +133,7 @@ function checkAllowOnly(task: TaskBase, allowOnly?: boolean) {
if (allowOnly) return
task.result = {
state: 'fail',
error: processError(new Error('only is not allowed')),
error: processError(new Error('[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly arguement to bypass this error')),
}
}

Expand Down

0 comments on commit 674c035

Please sign in to comment.