@scenarist/nextjs-adapter 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ await setScenario('test-1', 'admin');
|
|
|
33
33
|
This package provides complete Next.js integration for Scenarist's scenario management system, supporting both Pages Router and App Router:
|
|
34
34
|
|
|
35
35
|
- **Runtime scenario switching** via HTTP endpoints - no restarts needed
|
|
36
|
-
- **Test isolation** using unique test IDs - run
|
|
36
|
+
- **Test isolation** using unique test IDs - run tests in parallel
|
|
37
37
|
- **Automatic MSW integration** for request interception - no MSW setup required
|
|
38
38
|
- **Zero boilerplate** - everything wired automatically with one function call
|
|
39
39
|
- **Both routers supported** - Pages Router and App Router with identical functionality
|
|
@@ -212,7 +212,7 @@ test('premium user sees all features', async () => {
|
|
|
212
212
|
|
|
213
213
|
### Parallel Test Execution
|
|
214
214
|
|
|
215
|
-
Run
|
|
215
|
+
Run tests concurrently with different backend states - no conflicts:
|
|
216
216
|
|
|
217
217
|
```typescript
|
|
218
218
|
// Test 1: Uses 'success' scenario with test-id-1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scenarist/nextjs-adapter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Next.js adapter for Scenarist (Pages Router and App Router)",
|
|
5
5
|
"author": "Paul Hammond (citypaul) <paul@packsoftware.co.uk>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"zod": "^4.1.12",
|
|
62
|
-
"@scenarist/core": "0.0.
|
|
63
|
-
"@scenarist/msw-adapter": "0.0.
|
|
62
|
+
"@scenarist/core": "0.0.1",
|
|
63
|
+
"@scenarist/msw-adapter": "0.0.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"msw": "^2.0.0",
|