(task: TaskBase, allowOnly?: boolean)
| 156 | } |
| 157 | |
| 158 | function checkAllowOnly(task: TaskBase, allowOnly?: boolean) { |
| 159 | if (allowOnly) { |
| 160 | return |
| 161 | } |
| 162 | const error = processError( |
| 163 | new Error( |
| 164 | '[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly argument to bypass this error', |
| 165 | ), |
| 166 | ) |
| 167 | task.result = { |
| 168 | state: 'fail', |
| 169 | errors: [error], |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | /* @__NO_SIDE_EFFECTS__ */ |
| 174 | export function generateHash(str: string): string { |
no test coverage detected