@kitr/mocks 0.6.0 → 0.7.0
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/docs/index.md +1 -1
- package/package.json +2 -2
package/docs/index.md
CHANGED
|
@@ -401,7 +401,7 @@ it('lists open invoices', async () => {
|
|
|
401
401
|
|
|
402
402
|
Any code that calls `fetch` sees the mocks. Under `happy-dom` a relative URL such as `/api/invoices` resolves against `http://localhost:3000`; in the `node` environment use absolute URLs.
|
|
403
403
|
|
|
404
|
-
To render a component against these mocks, combine them with `renderWithKitr` from [testing](/packages/testing#fake-the-network-for-components).
|
|
404
|
+
To render a component against these mocks, combine them with `renderWithKitr` from [testing](/packages/testing/guide#fake-the-network-for-components).
|
|
405
405
|
|
|
406
406
|
## Override a handler for one test
|
|
407
407
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitr/mocks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "@kitr/mocks: MSW handlers from kitr contracts, for dev and tests.",
|
|
5
5
|
"kitr": {
|
|
6
6
|
"name": "mocks",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"docs"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@kitr/core": "0.
|
|
47
|
+
"@kitr/core": "0.7.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"msw": ">=2.0.0"
|