-
Updated
Apr 28, 2021 - Vue
mock
Here are 1,802 public repositories matching this topic...
-
Updated
May 9, 2021 - Java
-
Updated
Apr 27, 2021 - JavaScript
-
Updated
Mar 29, 2021 - PHP
-
Updated
May 8, 2021 - Vue
-
Updated
Feb 17, 2021 - JavaScript
What
A new ctx.forward utility may be added to forward the currently captured request to its original destination (bypass).
Why
- See #655
Currently bypassing is done via implicit/explicit return in the resolver. This is not intuitive and deterministic action, which also makes it hard to distinguish when the user forgot to return a mocked response, and when they meant to b
-
Updated
Jan 26, 2021 - Objective-C
I'd like a configuration option to be able to disable the default mock map on this line here and get an error instead:
https://github.com/apollographql/graphql-tools/blob/5c5418cec88f1d5520eccc1d2e6dfaa511547e4d/src/mock.ts#L282
We have tests that use mock data and I'd rather have an explicit error if a value could not be resolved. I find the implicit default value unhelpful in this case and m
Reorganize tests
The test suite is currently split between two organization models: some tests are organized by the component, or the feature, they test (like this), and a lot of tests are organized by the number of the GitHub issue they verify (like [this](https://github.com/mockk/mockk/blob/master/mockk/jvm/s
-
Updated
May 6, 2021 - JavaScript
-
Updated
May 8, 2021 - TypeScript
-
Updated
May 8, 2021 - JavaScript
-
Updated
May 11, 2020 - Vue
-
Updated
Jan 17, 2021 - Python
-
Updated
Jul 27, 2020 - Ruby
I would welcome a feature when, at the same url which is set to respond with OK status, I could have an error response generated with a random seed.
I am developing an Observable pattern to perform a series of retries to call an endpoint, with increasing delay. The problem is that during testing, I cannot really mock up the condition by randomly switching between two mocky.io urls (error and ok
A "normal" event on an instance ignores null subscriptions. If I do so on a substituted interface, a null subscription leads to an exception. I have a not so nice legacy code with different listeners to an event an one class that does null-attach internally under some conditions, would be nice if this behaviour would be able to be tested as well. Example code for the problem:
publ
What you did:
Create a route:
/orders/*
then set the delay to 2000ms.
What happened:
route not delayed when hit with another param beside *
/orders/1 not delayed

/orders/900 not delayed
/orders/* delayed
, but it started working again by itself sometime later, so I'm assuming that it was a GH blip.
I find it a little strange that the SPM installation for Cuckoo depends
-
Updated
Mar 2, 2021 - Go
-
Updated
Nov 29, 2020 - Kotlin
Improve this page
Add a description, image, and links to the mock topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the mock topic, visit your repo's landing page and select "manage topics."
Context
This isn't really a feature request, as what I need is possible with nock as-is. But I spent several hours searching, reading old issues and searching through the source code to find the solution, so I thought this might help others.
I am testing code that accesses a service that sets the statusMessage of the response, as well as the statusCode. I am using nock to mock the server