-
It would be great if we could just isolate / mock one directory, then use everything else from the regular fs. This might also be a good solution for https://github.com/fakefs/fakefs/issues/462
An…
-
In ES6, at least when transpiled by Babel or TS into CommonJS, all import statements are hoisted to the top of the file. If we want to setup some mocking before require() statements run, our only hop…
-
Hey! Wondering if there's any way to mock the block number? I can't immediately figure it out, or if Waffle is the right place to do it. I'm using waffle with hardhat & hardhat-ethers
-
Hi,
Thanks for isolating this logic. I tried to use this to mock a regular `Socket` connection so I can test how well a DB client handles network failures. This is a 3rd-party client which call `ne…
-
What version of Go are you using (go version)?
go version go1.14 darwin/amd64
github.com/DATA-DOG/go-sqlmock v1.4.1
github.com/jinzhu/gorm v1.9.12
Which database and its version are you usin…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
I'm trying to mock this code:
```
axiosInstance
.request(originalRequest)
.then(...);
```
Where `originalRequest` is an object like:
```
{
headers: { },
baseURL: 'http://localh…
-
In order to [mock interfaces](https://www.apollographql.com/docs/graphql-tools/mocking.html#Mocking-interfaces) a developer should be able to pass `preserveResolvers` option to `addMockFunctionsToSche…