@kitr/mocks 0.2.1 → 0.3.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.
Files changed (2) hide show
  1. package/docs/index.md +3 -3
  2. package/package.json +2 -2
package/docs/index.md CHANGED
@@ -234,7 +234,7 @@ With the [API](/packages/api) package, every route has a name. `mockRoutes` buil
234
234
 
235
235
  ```ts
236
236
  // app/mocks/handlers.ts
237
- import { KitrError } from 'kitr/app'
237
+ import { KitrError } from '@kitr/kitr/app'
238
238
  import { HttpResponse, mockRoutes } from '@kitr/mocks'
239
239
  import { routeTable } from '#app/api/routes.gen'
240
240
  import { type Invoice, invoices } from './data'
@@ -282,7 +282,7 @@ A resolver function receives `params`, `request` and `body()`, which reads the J
282
282
 
283
283
  ```ts
284
284
  // app/mocks/handlers.ts
285
- import { KitrError } from 'kitr/app'
285
+ import { KitrError } from '@kitr/kitr/app'
286
286
  import { http, kitrErrorResponse } from '@kitr/mocks'
287
287
 
288
288
  export const handlers = [
@@ -409,7 +409,7 @@ To render a component against these mocks, combine them with `renderWithKitr` fr
409
409
 
410
410
  ```ts
411
411
  // app/lib/invoices/invoices.test.ts
412
- import { KitrError } from 'kitr/app'
412
+ import { KitrError } from '@kitr/kitr/app'
413
413
  import { HttpResponse, http, kitrErrorResponse, setupNodeMocks } from '@kitr/mocks'
414
414
  import { afterAll, afterEach, beforeAll, expect, it } from 'vitest'
415
415
  import { handlers } from '#app/mocks/handlers'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitr/mocks",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
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.2.1"
47
+ "@kitr/core": "0.3.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "msw": ">=2.0.0"