Comments (1)
Missed that fact....
This path should be relative to the current file, just as it would be if you were to require the module
from the current file. mock-require is smart enough to mock this module everywhere it is required,
even if it's required from a different file using a different relative path.
from mock-require.
Related Issues (20)
- Using mock require to replace FS module and create a drop in replacement for in-memory filesystems HOT 3
- Use normalize() for consistency in Windows HOT 1
- Weird stuff (unmocking might be broken) with Node.js 8 HOT 12
- `caller.getTypeName is not a function` HOT 5
- Module._load alignment with Node HOT 2
- travis ci HOT 3
- Impossible to return strings HOT 4
- Unexpected Behaviour HOT 1
- Mocking Nested Dependencies HOT 1
- The mocked module is still loaded HOT 2
- Not mocking package under Jest HOT 7
- mocking nested dependencies HOT 8
- How is this difference from Sinon-like packages? HOT 1
- reRequiring index files returns startMocking HOT 1
- Cannot get to work with an express route module HOT 4
- Introduce a changelog and version tags
- `stop` and `stopAll` should also clear out the cache of previously mocked module HOT 1
- mocking nested dependencies
- Still maintained ? HOT 3
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 mock-require.