Skip to content

Commit e9310d6

Browse files
authored
fix(runtime-vapor): expect one setup error from a loaded component (#16338)
1 parent 69790e8 commit e9310d6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎packages/runtime-vapor/__tests__/apiDefineAsyncComponent.spec.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,17 +1728,15 @@ describe('api: defineAsyncComponent', () => {
17281728
await timeout()
17291729
})
17301730

1731-
// #16309: the wrapper handles the error again as a render error
17321731
expect(onError.mock.calls.map(([, , info]) => info)).toEqual([
17331732
'setup function',
1734-
'render function',
17351733
])
17361734
expect(
17371735
'Unhandled error during execution of setup function',
17381736
).toHaveBeenWarnedTimes(1)
17391737
expect(
17401738
'Unhandled error during execution of render function',
1741-
).toHaveBeenWarnedTimes(1)
1739+
).not.toHaveBeenWarned()
17421740
expect(
17431741
'Unhandled error during execution of async component loader',
17441742
).not.toHaveBeenWarned()

0 commit comments

Comments
 (0)