@page-component-object/msw 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 +24 -0
- package/package.json +22 -3
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @page-component-object/msw
|
|
2
|
+
|
|
3
|
+
> **Start here:** [Page Component Object (PCO) — main README](https://github.com/dvegap95/page-component-test-object#readme)
|
|
4
|
+
|
|
5
|
+
HTTP boundary for PCO view tests — `ApiTestObject` route registration, mock sessions, and `@semantic-matchers` API spy matchers.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @page-component-object/msw
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Documentation
|
|
14
|
+
|
|
15
|
+
All guides live in the monorepo — this page is a package entry point on npm.
|
|
16
|
+
|
|
17
|
+
- [**Main README** — overview, quick example, package list](https://github.com/dvegap95/page-component-test-object#readme)
|
|
18
|
+
- [Getting started](https://github.com/dvegap95/page-component-test-object/blob/master/docs/getting-started.md)
|
|
19
|
+
- [Project structure (`__pco__`)](https://github.com/dvegap95/page-component-test-object/blob/master/docs/project-structure.md)
|
|
20
|
+
- [Philosophy (query → primitive → intent)](https://github.com/dvegap95/page-component-test-object/blob/master/docs/philosophy.md)
|
|
21
|
+
|
|
22
|
+
## Package
|
|
23
|
+
|
|
24
|
+
`msw` in the [page-component-test-object](https://github.com/dvegap95/page-component-test-object) monorepo.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@page-component-object/msw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -15,11 +15,13 @@
|
|
|
15
15
|
"main": "./dist/index.js",
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"files": [
|
|
18
|
-
"dist"
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
19
21
|
],
|
|
20
22
|
"dependencies": {
|
|
21
23
|
"@semantic-matchers/core": "^0.1.1",
|
|
22
|
-
"@page-component-object/core": "0.1.
|
|
24
|
+
"@page-component-object/core": "0.1.1"
|
|
23
25
|
},
|
|
24
26
|
"peerDependencies": {
|
|
25
27
|
"msw": "^2.0.0"
|
|
@@ -44,6 +46,23 @@
|
|
|
44
46
|
"publishConfig": {
|
|
45
47
|
"access": "public"
|
|
46
48
|
},
|
|
49
|
+
"description": "MSW v2 API mock registry, ApiTestObject, and semantic API matchers",
|
|
50
|
+
"keywords": [
|
|
51
|
+
"api-mock",
|
|
52
|
+
"behavioral-testing",
|
|
53
|
+
"cypress",
|
|
54
|
+
"jest",
|
|
55
|
+
"msw",
|
|
56
|
+
"page-component-object",
|
|
57
|
+
"page-object",
|
|
58
|
+
"pco",
|
|
59
|
+
"react",
|
|
60
|
+
"semantic-matchers",
|
|
61
|
+
"storybook",
|
|
62
|
+
"test-object",
|
|
63
|
+
"testing-library",
|
|
64
|
+
"vitest"
|
|
65
|
+
],
|
|
47
66
|
"scripts": {
|
|
48
67
|
"build": "tsup",
|
|
49
68
|
"test": "vitest run",
|