https://github.com/maximilianschmitt/nextjs-playwright-ssr
https://github.com/maximilianschmitt/nextjs-playwright-ssr
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maximilianschmitt/nextjs-playwright-ssr
- Owner: maximilianschmitt
- Created: 2024-03-15T15:42:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-15T17:02:29.000Z (over 1 year ago)
- Last Synced: 2025-01-27T10:23:44.828Z (5 months ago)
- Language: TypeScript
- Size: 60.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nextjs-playwright-ssr
This repo demonstrates server-side request mocking when testing a Next.js application with Playwright.
## Usage
```
npm install
npm run test
```## Important files
- `app/page.tsx`: A sample page that displays my 3 latest GitHub repos
- `app/page.test.ts` A test file that includes server-side mocking
- `playwright.config.ts` The Playwright config using `playwright-ssr`