Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximilianschmitt/nextjs-playwright-ssr
https://github.com/maximilianschmitt/nextjs-playwright-ssr
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/maximilianschmitt/nextjs-playwright-ssr
- Owner: maximilianschmitt
- Created: 2024-03-15T15:42:47.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-03-15T17:02:29.000Z (10 months ago)
- Last Synced: 2024-10-15T04:45:06.908Z (3 months ago)
- Language: TypeScript
- Size: 60.5 KB
- Stars: 1
- 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`