menu
Channels
Team
Posts
Members
Info
Deleted·8h

apollo-datasource-rest + Typescript + Jest

I am setting up a new project using Apollo, TypeScript & Jest and I'm running into some difficulty testing my datasources that extent RESTDataSource. Jest will not mock the class to be extended & much of the advice I'm coming across recommends switching to composition over…

thumbsup
0
message-simple
1
hm ·5d

The built-in Playground Query delivers the wrong parameter order to Resolver.

Hello, I'm experiencing an bug in Resolver's Playground delivering parameter in the wrong order, so does anyone know what settings this can be solved? can find out more detail at the link : https://github.com/apollographql/apollo-server/issues/2708

thumbsup
0
message-simple
0

How to test queries and mutations using compose

Hi Guys I have used HOC compose to wrap my component with mutation and query and passed through props. How do I write test cases for them ?

thumbsup
1
message-simple
1

Encountering error with Upload scalar with apollo-server-testing

Error: Unknown type “Upload”. Did you mean “Float”? This only happens when I'm trying to run integration tests. When I start my server I don't run into any errors.

thumbsup
0
message-simple
0

withApollo `TypeError: Cannot read property 'query' of undefined`

libraries used Component setup Unit Test …

thumbsup
0
message-simple
0

Error in my React Unit Test with named mutation with refetchQuery

Error: UnhandledPromiseRejectionWarning: Error: Network error: No more mocked responses for the query: query AnalyisQuery($id: Int, $name: String) { My Setup …

thumbsup
0
message-simple
2

Is there a good way to implement component tests with react native?

thumbsup
0
message-simple
0
april·47d

Is there a way to ignore mutation variable matching in mocks?

I'm writing tests for a pretty complicated form and I don't want to mock the entire variables object. I've seen mocking packages for Relay that allow you to turn variable matching off, and was wondering if there's something like that for react-apollo test utils. Additionally I'm…

thumbsup
0
message-simple
0

How to test apollo-link-error?

I have an apollo-link-error which clears the local storage on error: How can I test it with Jest? My best attempt so far:

thumbsup
0
message-simple
0

How to test whether mutations/queries are called?

Does anyone know how to test whether a mutation/query has been called with Jest/Enzyme? This is my best attempt so far:

thumbsup
0
message-simple
0