Closed coltonehrman closed 4 years ago
Related I was missing the data
prop in mocks
const mocks = [
{
request: { query: GET_APP },
result: {
data: {
lessons: [],
session: null,
alerts: []
}
}
}
]
I am trying to mock returning null in a query, but MockedProvider is not allowing me to do it.
Below, you can see the mock that I am trying to use
Below is the component that is being tested
Below is the
gql
query that is being mockedBelow are the typedef definitions
I want to run a test when
session
is completely null, is this possible with MockedProvider and the way I have everything setup?