-
Recently I had an absurd error on `seneca-amqp-transport` on the service that had been run on production for a while, the error says:
```
Seneca Fatal Error
==================
Message: seneca:…
-
I really like the idea behind this project, but it still kinda feels like a boilerplate — you have to decide to use `react-app-rewired` instead of `create-react-app` at the beginning, right?
Would …
-
Hi. I'm trying to help Sails get Proxy Protocol support by using Proxyquire to proxy in the HTTP modules. I have a [little demo project for the attempt](https://github.com/mfowlewebs/sails-proxywrap).…
-
Hi,
I'm having some trouble stubbing out a nested dependency when running my tests using an external script written for npm test purposes. Below is the relevant code:
``` javascript
const API = requ…
-
at the moment, `require('hoodie')` returns a method that creates a Hapi instance and passes it to the callback: https://github.com/hoodiehq/hoodie/blob/master/server/index.js
The way we start the Hoo…
-
Let's say I have a module, `x.js`, whose functionality I'd like to define in terms of a sails model (created with `sails generate api cats`). How do I include the fully hydrated `Cats` model object (e…
-
smth.js
``` js
const utils = require('../utils/index');
//... module code
```
smth.test.js
``` js
const smth = proxyquire('./modules/smth/index', {
'../utils/index': utils
});
//... test code
`…
-
I'm trying to setup a simple test with proxyquire, but whatever I do it doesn't work
Here is a [repo](https://github.com/scaljeri/mock-require/tree/proxyquire) to reproduce.
main.js:
```
import pro…
-
npm-shrinkwrap.json from c87ba8b to 5d65efc
![image](https://cloud.githubusercontent.com/assets/270447/18392648/d8cc5472-76b2-11e6-9353-438039f80c6f.png)
-
When using composition with a local path (`composeWith('gen:app', { local: 'local/path' })`), it ignores/bypass the generators mocks we setup on the RunContext with `#withGenerators()` as it requires/…