Skip to content

Commit

Permalink
fix(repo): Update tests and playgrounds with new push prop
Browse files Browse the repository at this point in the history
  • Loading branch information
desiprisg committed Nov 15, 2023
1 parent 8afd901 commit 4bfe7b6
Show file tree
Hide file tree
Showing 6 changed files with 308 additions and 43 deletions.
2 changes: 1 addition & 1 deletion integration/templates/react-vite/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Root = () => {
// @ts-ignore
publishableKey={import.meta.env.VITE_CLERK_PUBLISHABLE_KEY as string}
clerkJSUrl={import.meta.env.VITE_CLERK_JS as string}
navigate={(to: string) => navigate(to)}
push={(to: string) => navigate(to)}
>
<Outlet />
</ClerkProvider>
Expand Down
2 changes: 1 addition & 1 deletion packages/chrome-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function ClerkProviderWithRoutes() {
return (
<ClerkProvider
publishableKey={publishableKey}
navigate={to => navigate(to)}
push={to => navigate(to)}
>
<Routes>
<Route
Expand Down
16 changes: 8 additions & 8 deletions packages/clerk-js/src/core/clerk.redirects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ describe('Clerk singleton - Redirects', () => {

clerkForProductionInstance = new Clerk(productionPublishableKey);
await clerkForProductionInstance.load({
navigate: mockNavigate,
push: mockNavigate,
});

clerkForDevelopmentInstance = new Clerk(developmentPublishableKey);
await clerkForDevelopmentInstance.load({
navigate: mockNavigate,
push: mockNavigate,
});
});

Expand Down Expand Up @@ -191,12 +191,12 @@ describe('Clerk singleton - Redirects', () => {

clerkForProductionInstance = new Clerk(productionPublishableKey);
await clerkForProductionInstance.load({
navigate: mockNavigate,
push: mockNavigate,
});

clerkForDevelopmentInstance = new Clerk(developmentPublishableKey);
await clerkForDevelopmentInstance.load({
navigate: mockNavigate,
push: mockNavigate,
});
});

Expand Down Expand Up @@ -282,12 +282,12 @@ describe('Clerk singleton - Redirects', () => {

clerkForProductionInstance = new Clerk(productionPublishableKey);
await clerkForProductionInstance.load({
navigate: mockNavigate,
push: mockNavigate,
});

clerkForDevelopmentInstance = new Clerk(developmentPublishableKey);
await clerkForDevelopmentInstance.load({
navigate: mockNavigate,
push: mockNavigate,
});
});

Expand Down Expand Up @@ -315,12 +315,12 @@ describe('Clerk singleton - Redirects', () => {

clerkForProductionInstance = new Clerk(productionPublishableKey);
await clerkForProductionInstance.load({
navigate: mockNavigate,
push: mockNavigate,
});

clerkForDevelopmentInstance = new Clerk(developmentPublishableKey);
await clerkForDevelopmentInstance.load({
navigate: mockNavigate,
push: mockNavigate,
});
});

Expand Down
Loading

0 comments on commit 4bfe7b6

Please sign in to comment.