-
Hello
I know it's not related to proxyquire directly but I'm stuck since 3 days on this issue :
I'm building a AWS lambda that connect to a postgres database. I wanted to mock this database for…
-
The specific case I'm running into is as follows:
``` js
// *** my-module.js ***
// returns undefined on Node ProxyquireError: Invalid stub: "native-or-bluebird/promise" cannot be undefined
var my…
-
Currently if an exception causes `zurvan` to break the loop, it is left in invalid state and timers cannot be properly released - process must be killed for it (there is a possibility of using somethi…
-
I tried to build this on Ubuntu 16.04 and got:
> `~/Downloa/cside code - main-1.0.1 npm install 1129ms
> npm WARN deprecated osx-trash@1.0.1: Deprecated in favor of the `tra…
-
foo.js
```
const bar = require('app/bar.js');
const model = require('./model.js');
```
fooSpec.js
```
const bar = require('app/bar.js');
const proxyquire = require('proxyquireify')(require);
const …
-
travi updated
8 years ago
-
Without an official method for extending Sinon's stub API, a few modules—particularly [sinon-as-promised](https://github.com/bendrucker/sinon-as-promised)—extend the available stub behaviours by patch…
-
### Test Source
```js
// ./config.js
console.log('./config.js', 'process.env.GOOGLE_API_KEY', process.env.GOOGLE_API_KEY);
export const googleApiKey = process.env.GOOGLE_API_KEY;
```
```js…
gajus updated
7 years ago
-
Consider the following test code.
Running **test 1** on it works as expected and prints 1. However, **test 2** prints 1 as well. Removing `.noCallThru()` fixes this behavior and prints 2 for 2nd tes…
-
```
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install' ]
2 info using npm@2.14.7
3 info using node@v4.2.1
4 verbose readDependencies loading dependencies …