Comments (1)
@ianwsperber The request to match by URL is pretty straightforward to implement. And I think the use-case that supports is:
- I have a server that makes calls A, B, C. The order of B, C calls is non-deterministic.
- I want to run save to capture mocks to disk. I want to run load to restore mocks from disk.
- I don't want my tests to fail if the order of B and C tests fail
However using the matching...respond
feature one could inline the mocks for B and C. They wouldn't get the benefit of easily saving and loading B and C calls but that would work too.
Any thoughts on if matching...respond
will meet the need or is the use case more along the lines of save...load mocks?
from yesno.
Related Issues (20)
- Headers not being sent correctly for form-data?
- Tests fail for Node 10 HOT 1
- Include path in error message when method mismatch HOT 1
- Comparison to nock
- Allow intercepting only specified requests HOT 2
- First class support for browser testing
- Integration tests failing in node v12 HOT 2
- Support recording from selected hosts/urls
- Swap out request lib for Axios in Tests
- Update default branch to be called "main"
- Should mocks defined using `matching().respond()` clobber mocks from `yesno.mock`
- Questions on detailed behavior of matching().respond()
- Feature: Implement yesno.mockRule
- Feature: Implement yesno.mockRule().record
- Feature: Implement yesno.mockRule().live()
- Feature: Implement yesno.mockRule().respond()
- Feature: Implement yesno.mockRule().redact()
- Feature: Implement yesno.mockMatchingFunction()
- Feature: Change default to best matching mock instead of index based
- Feature: Implement yesno.mockMode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yesno.