├── .babelrc ├── .flowconfig ├── .gitignore ├── .prettierignore ├── CHANGELOG.md ├── README.md ├── __testUtils__ ├── fetchQuery.js └── queryMock.js ├── __tests__ ├── __snapshots__ │ ├── handleErrors-tests.js.snap │ └── queryMock-tests.js.snap ├── getOperationNameFromQuery-tests.js ├── handleErrors-tests.js └── queryMock-tests.js ├── flow-typed └── npm │ ├── @babel │ ├── cli_vx.x.x.js │ ├── core_vx.x.x.js │ ├── plugin-proposal-class-properties_vx.x.x.js │ ├── plugin-proposal-object-rest-spread_vx.x.x.js │ ├── preset-env_vx.x.x.js │ └── preset-flow_vx.x.x.js │ ├── babel-core_vx.x.x.js │ ├── babel-jest_vx.x.x.js │ ├── deep-equal_vx.x.x.js │ ├── flow-bin_v0.x.x.js │ ├── flow-copy-source_vx.x.x.js │ ├── flow-typed_vx.x.x.js │ ├── jest-diff_vx.x.x.js │ ├── jest_v23.x.x.js │ ├── nock_v9.x.x.js │ ├── node-fetch_vx.x.x.js │ ├── object-hash_v1.x.x.js │ └── typescript_vx.x.x.js ├── package.json ├── setup ├── jest.setup.js └── jest.setupFramework.js ├── src ├── defaults.js ├── getNockRequestHandlerFn.js ├── getOperationNameFromQuery.js ├── handleErrors.js ├── index.d.ts ├── index.js ├── types.js.flow └── utils.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/.babelrc -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/.flowconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.log 3 | node_modules 4 | lib 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | **/*.js.snap 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/README.md -------------------------------------------------------------------------------- /__testUtils__/fetchQuery.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/__testUtils__/fetchQuery.js -------------------------------------------------------------------------------- /__testUtils__/queryMock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/__testUtils__/queryMock.js -------------------------------------------------------------------------------- /__tests__/__snapshots__/handleErrors-tests.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/__tests__/__snapshots__/handleErrors-tests.js.snap -------------------------------------------------------------------------------- /__tests__/__snapshots__/queryMock-tests.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/__tests__/__snapshots__/queryMock-tests.js.snap -------------------------------------------------------------------------------- /__tests__/getOperationNameFromQuery-tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/__tests__/getOperationNameFromQuery-tests.js -------------------------------------------------------------------------------- /__tests__/handleErrors-tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/__tests__/handleErrors-tests.js -------------------------------------------------------------------------------- /__tests__/queryMock-tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/__tests__/queryMock-tests.js -------------------------------------------------------------------------------- /flow-typed/npm/@babel/cli_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/@babel/cli_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/@babel/core_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/@babel/core_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/@babel/plugin-proposal-class-properties_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/@babel/plugin-proposal-class-properties_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/@babel/plugin-proposal-object-rest-spread_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/@babel/plugin-proposal-object-rest-spread_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/@babel/preset-env_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/@babel/preset-env_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/@babel/preset-flow_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/@babel/preset-flow_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/babel-core_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/babel-core_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/babel-jest_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/babel-jest_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/deep-equal_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/deep-equal_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/flow-bin_v0.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/flow-bin_v0.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/flow-copy-source_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/flow-copy-source_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/flow-typed_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/flow-typed_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/jest-diff_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/jest-diff_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/jest_v23.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/jest_v23.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/nock_v9.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/nock_v9.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/node-fetch_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/node-fetch_vx.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/object-hash_v1.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/object-hash_v1.x.x.js -------------------------------------------------------------------------------- /flow-typed/npm/typescript_vx.x.x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/flow-typed/npm/typescript_vx.x.x.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/package.json -------------------------------------------------------------------------------- /setup/jest.setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/setup/jest.setup.js -------------------------------------------------------------------------------- /setup/jest.setupFramework.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/setup/jest.setupFramework.js -------------------------------------------------------------------------------- /src/defaults.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/src/defaults.js -------------------------------------------------------------------------------- /src/getNockRequestHandlerFn.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/src/getNockRequestHandlerFn.js -------------------------------------------------------------------------------- /src/getOperationNameFromQuery.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/src/getOperationNameFromQuery.js -------------------------------------------------------------------------------- /src/handleErrors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/src/handleErrors.js -------------------------------------------------------------------------------- /src/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/src/index.d.ts -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/src/index.js -------------------------------------------------------------------------------- /src/types.js.flow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/src/types.js.flow -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/src/utils.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zth/graphql-query-test-mock/HEAD/yarn.lock --------------------------------------------------------------------------------