Mocked request starts timing out after picking up v10.0.5
See original GitHub issueWhat is the expected behavior?
A minor version update of nock
library shouldn’t impact my existing tests.
What is the actual behavior?
All my tests uses fakeTimers
are now timing out.
Possible solution
Revert the fix for https://github.com/nock/nock/issues/677, or make it optional if it has to go as a minor version update.
How to reproduce the issue
Have sinon.useFakeTimers()
in the test case.
Having problem producing a test case? Try and ask the community for help. If the test case cannot be reproduced, the Nock community might not be able to help you.
Does the bug have a test case?
Versions
Software | Version(s) |
---|---|
Nock | 10.0.5 |
Node | 8 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (12 by maintainers)
Top Results From Across the Web
Mirage JS tutorial: Mocking APIs in React - LogRocket Blog
This command starts up the development server of our React application. Setting up Mirage JS. Before we start mocking out the APIs needed...
Read more >BeerSheets 2022-09-02 (Single Column Sheet Edition) - Reddit
What I like to do is start off with value and see which players are available within each position that have similar value....
Read more >Shallow Render
Shallow will provide us a mock of list-container and list-item , but if we want to write a test that ensures we hooked...
Read more >apollo-server | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn. ≡. Home · Getting started.
Read more >Unit Testing Framework - The Graph Docs
To use Matchstick in your subgraph project just open up a terminal, navigate to the root folder of your project and simply run...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
🎉 This issue has been resolved in version 10.0.6 🎉
The release is available on:
Your semantic-release bot 📦🚀
I’ll work on a PR then.