diff --git a/test/react-web/client/graphql/queries/skip.test.tsx b/test/react-web/client/graphql/queries/skip.test.tsx index 1e38cfd1df..5bb7b76162 100644 --- a/test/react-web/client/graphql/queries/skip.test.tsx +++ b/test/react-web/client/graphql/queries/skip.test.tsx @@ -123,7 +123,7 @@ describe('[queries] skip', () => { renderer.create(); }); - it('doesn\'t run options or props when skipped', (done) => { + it('doesn\'t run options or props when skipped, except option.client', (done) => { const query = gql`query people { allPeople(first: 1) { people { name } } }`; const data = { allPeople: { people: [ { name: 'Luke Skywalker' } ] } }; const networkInterface = mockNetworkInterface({ request: { query }, result: { data } }); @@ -132,7 +132,7 @@ describe('[queries] skip', () => { let queryExecuted; @graphql(query, { skip: ({ skip }) => skip, - options: ({ willThrowIfAccesed }) => ({ pollInterval: willThrowIfAccesed.pollInterval }), + options: ({ client, ...willThrowIfAccesed }) => ({ pollInterval: willThrowIfAccesed.pollInterval }), props: ({ willThrowIfAccesed }) => ({ pollInterval: willThrowIfAccesed.pollInterval }), }) class Container extends React.Component {