-
Have you considered adding the ability to mock built-in golang types? It seems like a mixed bag out there of libraries and people hand rolling various core type mocks. Seems like this might be usefu…
-
It occurred to me this monring that io-uring is exceptionally mockable as far as IO interfaces go, because it is mostly just a data structure. With changes to make it easier to create fake SQEs and CQ…
-
I’m trying to mock ICountryFactory but with no luck. Here is the code:
```
var _countryFactory = new Mock();
_countryFactory
.Setup(f => f.CreateCountry(It.IsAny()))
…
-
``` js
// request-foo.js
import {mock} from 'mocktail';
import foo from 'foo'; // foo is a third-party dependency that makes and io operation
class Request {
...
}
export default mock(Request);
``…
-
https://www.apollographql.com/docs/graphql-tools/mocking.html provides a great baseline for mocking in GraphQL projects. The ability to mix and match mocks and real implementations though could use g…
-
React Native does some magic around requires to allow `require(img.png)` as pointed out in https://github.com/lelandrichardson/react-native-mock/issues/11, but it also allows platform-specific compone…
IanVS updated
6 years ago
-
#### Goal
I want to make mock object of asObservable() about findFirstAsync.
I found a comment in RealmObject.
```
// TODO Is this true? Should we just return Observable.just(object) ?
throw new Ille…
-
Theres no way to pass in a `URLSession` into any of the Torus functions. This is how most libraries expose the ability to mock URL requests so that code can be unit tested.
Is there any other metho…
-
How to mock a local provider declared in a component?
```ts
@Component({
providers: [MyService]
})
class MyComponent {}
```
-
👋 hi Matthew! My name is Brandon. I happened across this because I wrote a [similar testing library](https://native-testing-library.com) for react-native. I love how simple the API is for this package…