Skip to content

Commit

Permalink
test: fix test expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Sep 26, 2022
1 parent a72611a commit 4fae6a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playground/react/__tests__/react.spec.ts
Expand Up @@ -26,9 +26,11 @@ test('should only hmr files with exported react components', async () => {
)
await untilUpdated(() => page.textContent('#parent'), 'Updated')
expect(browserLogs).toMatchObject([
'[vite] hot updated: /hmr/no-exported-comp.jsx',
'[vite] hot updated: /hmr/parent.jsx',
'Parent rendered'
])
browserLogs.length = 0
})

test.runIf(isServe)(
Expand Down

0 comments on commit 4fae6a8

Please sign in to comment.