Skip to content

Commit

Permalink
doc: add reference to the mocks-to-msw
Browse files Browse the repository at this point in the history
  • Loading branch information
peterknezek committed Mar 7, 2024
1 parent ef6fa5c commit ca2786c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ If output folder is not specified mocks will not be written.

### Extract data from .har to mock/api folder

Export structure is prepared for [connect-api-mocker](https://www.npmjs.com/package/connect-api-mocker). After successful filtering request just add second argument which will be path to `connect-api-mocker`'s folder for mock/api.
The second argument should be path to `mock`'s folder. Export structure is prepared for [mocks-to-msw](https://github.com/peterknezek/mocks-to-msw) which helps with integration with MSW (Mock Service Worker) and [connect-api-mocker](https://www.npmjs.com/package/connect-api-mocker).

WARNING: When second argument is defined cli will write files. To avoid unwanted overwrite use `--dry-run` flag to skip writing part of process.

Expand Down

0 comments on commit ca2786c

Please sign in to comment.