Skip to content

Commit

Permalink
fix: improve test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Jun 20, 2024
1 parent a1a67bf commit 3f08c79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/patcher/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ beforeAll(async () => {
await import('../.routify/routify-init.js')
router = globalThis.__routify.routers[0]
await router.ready()
// wait for components to render
await new Promise((resolve) => setTimeout(resolve))
await router.activeRoute.get().rendered
})
${tests.map(resolveTestTemplate).join('\n\n')}
Expand Down

0 comments on commit 3f08c79

Please sign in to comment.