generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Split e2e and playground (#390)
* chore: Split e2e and playground * chore: Remove unused file * chore: Fix Turbo config * chore: Trying to make Vercel happy * chore: Testing multiple versions of Next.js in CI * chore: Testing with canary * chore: Disable continue-on-error * chore: Better name on Slack * chore: Testing better job names * chore: Remove /e2e/ prefix on test bench * chore: Add tests for basePath * chore: Fix basePath * chore: Reverse logic * chore: Fix inclusion
- Loading branch information
Showing
39 changed files
with
411 additions
and
128 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
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
4 changes: 3 additions & 1 deletion
4
packages/playground/cypress.config.ts → packages/e2e/cypress.config.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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
/// <reference types="next/navigation-types/compat/navigation" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
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,6 @@ | ||
/** @type {import('next').NextConfig } */ | ||
const config = { | ||
basePath: process.env.BASE_PATH === '/' ? undefined : process.env.BASE_PATH | ||
} | ||
|
||
export default config |
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,37 @@ | ||
{ | ||
"name": "e2e", | ||
"version": "0.0.0-internal", | ||
"description": "End-to-end test bench for next-usequerystate", | ||
"license": "MIT", | ||
"private": true, | ||
"author": { | ||
"name": "François Best", | ||
"email": "[email protected]", | ||
"url": "https://francoisbest.com" | ||
}, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "next dev --port 3001", | ||
"build": "next build", | ||
"start": "next start --port 3001", | ||
"pretest": "cypress install", | ||
"test": "run-p --race start cypress:run", | ||
"cypress:open": "cypress open", | ||
"cypress:run": "cypress run --headless" | ||
}, | ||
"dependencies": { | ||
"next": "14.0.2-canary.7", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"next-usequerystate": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.8.9", | ||
"@types/react": "^18.2.33", | ||
"@types/react-dom": "^18.2.14", | ||
"@types/webpack": "^5.28.4", | ||
"cypress": "^13.3.3", | ||
"npm-run-all": "^4.1.5", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,25 @@ | ||
import React, { Suspense } from 'react' | ||
import { HydrationMarker } from '../components/hydration-marker' | ||
|
||
export const metadata = { | ||
title: 'next-usequerystate playground', | ||
description: | ||
'useQueryState hook for Next.js - Like React.useState, but stored in the URL query string' | ||
} | ||
|
||
export default function RootLayout({ | ||
children | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html> | ||
<body> | ||
<Suspense> | ||
<HydrationMarker /> | ||
</Suspense> | ||
{children} | ||
</body> | ||
</html> | ||
) | ||
} |
Oops, something went wrong.