Skip to content

Commit 2909850

Browse files
committed
test(e2e): route the electron template through history instead of reloading
1 parent efb8fec commit 2909850

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • integration/templates/electron-vite/src

‎integration/templates/electron-vite/src/main.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function App() {
1212
<ClerkProvider
1313
publishableKey={PUBLISHABLE_KEY}
1414
__internal_clerkUIUrl={CLERK_UI_URL}
15+
routerPush={(to: string) => window.history.pushState(null, '', to)}
16+
routerReplace={(to: string) => window.history.replaceState(null, '', to)}
1517
>
1618
<main data-testid='electron-app'>
1719
<Show when='signed-out'>

0 commit comments

Comments
 (0)