@scenarist/express-adapter 0.1.10 → 0.1.12
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 +12 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,6 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
Express.js adapter for [Scenarist](https://scenarist.io) - manage MSW mock scenarios in your Express applications for testing **and** development.
|
|
7
7
|
|
|
8
|
+
## 📖 Documentation
|
|
9
|
+
|
|
10
|
+
**→ [Express Getting Started Guide](https://scenarist.io/frameworks/express/getting-started)** — Full setup instructions and examples
|
|
11
|
+
|
|
12
|
+
| Topic | Link |
|
|
13
|
+
| --------------------- | ------------------------------------------------------------------------------------------------ |
|
|
14
|
+
| **Why Scenarist?** | [scenarist.io/getting-started/why-scenarist](https://scenarist.io/getting-started/why-scenarist) |
|
|
15
|
+
| **Tool Comparison** | [scenarist.io/comparison](https://scenarist.io/comparison) |
|
|
16
|
+
| **Parallel Testing** | [scenarist.io/testing/parallel-testing](https://scenarist.io/testing/parallel-testing) |
|
|
17
|
+
| **Dynamic Responses** | [scenarist.io/concepts/dynamic-responses](https://scenarist.io/concepts/dynamic-responses) |
|
|
18
|
+
|
|
8
19
|
## What is Scenarist?
|
|
9
20
|
|
|
10
21
|
**Scenarist** enables concurrent tests to run with different backend states by switching mock scenarios at runtime via test IDs. Your real application code executes while external API responses are controlled by scenarios. No application restarts needed, no complex per-test mocking, just simple scenario switching.
|
|
@@ -105,6 +116,7 @@ yarn add -D @scenarist/express-adapter msw
|
|
|
105
116
|
| ----------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
106
117
|
| **Why Scenarist?** | [scenarist.io/getting-started/why-scenarist](https://scenarist.io/getting-started/why-scenarist) |
|
|
107
118
|
| **Getting Started (Express)** | [scenarist.io/frameworks/express/getting-started](https://scenarist.io/frameworks/express/getting-started) |
|
|
119
|
+
| **Tool Comparison** | [scenarist.io/comparison](https://scenarist.io/comparison) |
|
|
108
120
|
| **Parallel Testing** | [scenarist.io/testing/parallel-testing](https://scenarist.io/testing/parallel-testing) |
|
|
109
121
|
| **Testing Philosophy** | [scenarist.io/concepts/philosophy](https://scenarist.io/concepts/philosophy) |
|
|
110
122
|
| **Architecture** | [scenarist.io/concepts/architecture](https://scenarist.io/concepts/architecture) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scenarist/express-adapter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Express middleware adapter for Scenarist",
|
|
5
5
|
"author": "Paul Hammond (citypaul) <paul@packsoftware.co.uk>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"zod": "^4.1.13",
|
|
51
|
-
"@scenarist/
|
|
52
|
-
"@scenarist/
|
|
51
|
+
"@scenarist/msw-adapter": "0.1.2",
|
|
52
|
+
"@scenarist/core": "0.1.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"express": "^4.18.0 || ^5.0.0",
|