mockiavelli
mockiavelli copied to clipboard
HTTP request mocking library for Puppeteer and Playwright
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.0.7 to 19.0.3. Release notes Sourced from semantic-release's releases. v19.0.3 19.0.3 (2022-06-09) Bug Fixes log-repo: use the original form of the repo url to remove the need...
Hello, just thought having documentation around this https://github.com/HLTech/mockiavelli/pull/31 would be nice. I was trying to figure out how to add a wildcard to the mock and found this PR in...
This PR will introduce `mockiavelli.passThrough` method, that gives user the ability to define which endpoints should not be mocked (requested in #10 ): ```typescript mockiavelli.passThrough('/do/not/mock'); ``` Any request that matches...
The current mock mechanism is "strict" regarding trailing slashes: ``` mockiavelli.mockGET('/example', {status: 200}) // GET /example/ => 404 ``` This behaviour should be at least configurable to allow ignoring trailing...
Or how to specify the endpoints which should not be mocked
Sample log (with `debug:true` and `dumpio: true`. The request to `/auth/oauth/token` is not replied correctly ``` [2021-04-16T10:15:22.133Z] 2021-04-16T10:15:21.098Z mockiavelli:main > req: type=other method=OPTIONS url=https://example.com/auth/oauth/token [2021-04-16T10:15:22.133Z] [0416/101521.106580:INFO:CONSOLE(0)] "Access to XMLHttpRequest at...
Hi! Thanks for great lib! Wondering, is it possible somehow to mock particular graphql request?
It looks like Mockiavelli is not catching these at all - I get no errors or warnings about unhandled API calls, and when I do try to handle them they...
I think that we should disable "Allow merge commits" option. The most proper option is merging with rebasing (only).  What do you think ? @lukaszfiszer
Mocking requests containing non-ASCII chars in URL: ``` mockiavelli.mockGET('/users/Łukasz Żółw`, {status: 200}) ``` never works - mock returns 404