generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
149 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { defineConfig } from 'e2e-shared/cypress.config' | ||
|
||
export default defineConfig({ | ||
baseUrl: 'http://localhost:3002' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
e2e/examples/ | ||
plugins/ | ||
screenshots/ | ||
videos/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { testBasicIO } from 'e2e-shared/specs/basic-io.cy' | ||
|
||
testBasicIO({ | ||
hook: 'useQueryState', | ||
path: '/basic-io/useQueryState' | ||
}) | ||
|
||
testBasicIO({ | ||
hook: 'useQueryStates', | ||
path: '/basic-io/useQueryStates' | ||
}) |
5 changes: 5 additions & 0 deletions
5
packages/e2e/react/cypress/e2e/shared/hash-preservation.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { testHashPreservation } from 'e2e-shared/specs/hash-preservation.cy' | ||
|
||
testHashPreservation({ | ||
path: '/hash-preservation' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { testPush } from 'e2e-shared/specs/push.cy' | ||
|
||
testPush({ | ||
path: '/push/useQueryState', | ||
hook: 'useQueryState' | ||
}) | ||
|
||
testPush({ | ||
path: '/push/useQueryStates', | ||
hook: 'useQueryStates' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import 'e2e-shared/cypress/support/e2e' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { NuqsAdapter } from 'nuqs/adapters/next' | ||
import { HydrationMarker } from 'e2e-shared/components/hydration-marker' | ||
import { NuqsAdapter } from 'nuqs/adapters/react' | ||
import { StrictMode } from 'react' | ||
import { createRoot } from 'react-dom/client' | ||
import { CounterButton } from './components/counter-button' | ||
import { SearchInput } from './components/search-input' | ||
import { Router } from './routes' | ||
|
||
createRoot(document.getElementById('root')!).render( | ||
<StrictMode> | ||
<HydrationMarker /> | ||
<NuqsAdapter> | ||
<CounterButton /> | ||
<SearchInput /> | ||
<Router /> | ||
</NuqsAdapter> | ||
</StrictMode> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { JSX, lazy } from 'react' | ||
|
||
// prettier-ignore | ||
const routes: Record<string, React.LazyExoticComponent<() => JSX.Element>> = { | ||
'/hash-preservation': lazy(() => import('./routes/hash-preservation')), | ||
'/basic-io/useQueryState': lazy(() => import('./routes/basic-io.useQueryState')), | ||
'/basic-io/useQueryStates': lazy(() => import('./routes/basic-io.useQueryStates')), | ||
'/push/useQueryState': lazy(() => import('./routes/push.useQueryState')), | ||
'/push/useQueryStates': lazy(() => import('./routes/push.useQueryStates')), | ||
} | ||
|
||
export function Router() { | ||
const Route = routes[location.pathname] | ||
if (!Route) { | ||
return <>404 not found</> | ||
} | ||
return <Route /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { UseQueryStateBasicIO } from 'e2e-shared/specs/basic-io' | ||
|
||
export default UseQueryStateBasicIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { UseQueryStatesBasicIO } from 'e2e-shared/specs/basic-io' | ||
|
||
export default UseQueryStatesBasicIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { HashPreservation } from 'e2e-shared/specs/hash-preservation' | ||
|
||
export default HashPreservation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { PushUseQueryState } from 'e2e-shared/specs/push' | ||
|
||
export default PushUseQueryState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { PushUseQueryStates } from 'e2e-shared/specs/push' | ||
|
||
export default PushUseQueryStates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.