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
Removes the warning:
```
stderr | tests/trigger.spec.ts > trigger > errors > throws error if options contains a target value
Promise returned by `expect(actual).rejects.toThrowError(expected)` was not awaited. Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. Please remember to await the assertion.
```
Copy file name to clipboardexpand all lines: tests/trigger.spec.ts
+2-2
Original file line number
Diff line number
Diff line change
@@ -344,7 +344,7 @@ describe('trigger', () => {
344
344
})
345
345
346
346
describe('errors',()=>{
347
-
it('throws error if options contains a target value',()=>{
347
+
it('throws error if options contains a target value',async()=>{
348
348
constexpectedErrorMessage=
349
349
'[vue-test-utils]: you cannot set the target value of an event. See the notes section of the docs for more details—https://vue-test-utils.vuejs.org/api/wrapper/trigger.html'
0 commit comments