-
I have a sandboxed module with the following contents:
``` js
var foo = function () {}
console.log(1, typeof foo);
console.log(2, foo instanceof Function);
// => 1 'function'
// => 2 false
```
`foo …
-
### Feature Request
Playwright Test can also be used as a "generic" test runner to run unit/integration tests (see #14268).
For such tests it is often helpful, if not necessary, to mock modules …
-
There have been a couple of longstanding issues and pull requests regarding Promises on the lolex issue tracker.
I am assuming we will probably implement https://github.com/sinonjs/lolex/issues/114…
-
Hoping I'm just doing something wrong.
Module:
```
const getThing = function getThing() {
var s3 = new AWS.S3();
return s3.getObject(params).promise().then(function(data) {
var thing =…
-
This is great tool for writing my tests, however I've noticed that both with and without `noCallThru()`, if we stub a library and write out our test cases, if the underlying module methods then change…
-
Hi,
I am exporting `rewire` from a utility (test-helpers) library so that I do not need to include it in all my projects. Doing so, I am unable to use the relative path to import the file.
```
…
-
Is there are any interest in refactoring the code to improve the mockability of modules. The last time I unit tested a meanjs application, I had to create a testing database and set up a testing serv…
-
EcmaScript modules that run in an environment supporting them (meaning they haven't been transpiled using Babel to ES5) and export a `default` function of some kind cannot be stubbed, as ES namespaces…
-
that would be super useful for testing APIs.
something like
GET /emails/_search?to=email@email.com
GET /emails/_search?from=email@email.com
would help to get emails and check if their cont…
-
An `overlay` option would make it so the `fs` module operates on the in-memory filesystem for all mocked paths and operates on the real file system for all other paths.
For example:
``` js
var asser…