UNPKG

graphql-query-test-mock

Version:

Mock queries to your GraphQL backend in your Jest tests.

91 lines (90 loc) 2.14 kB
{ "name": "graphql-query-test-mock", "version": "0.12.1", "author": "Gabriel Nordeborn", "license": "MIT", "main": "lib/index.js", "types": "lib/index.d.ts", "repository": "https://github.com/zth/graphql-query-test-mock", "description": "Mock queries to your GraphQL backend in your Jest tests.", "keywords": [ "graphql", "testing", "mock", "jest", "react", "relay", "relaymodern", "apollo", "apollocodegen", "mockquery", "querymock" ], "scripts": { "test": "jest", "test:watch": "yarn test --watch", "prepublish": "yarn build && yarn flow && yarn test", "flow": "flow check", "prettier": "prettier \"{src,__tests__}/**/*\" --write", "build": "rm -rf lib && babel src --copy-files --out-dir lib && flow-copy-source src lib" }, "files": [ "package.json", "README.md", "LICENSE", "lib", "yarn.lock" ], "devDependencies": { "@babel/cli": "^7.0.0-rc.1", "@babel/core": "^7.0.0-rc.1", "@babel/plugin-proposal-class-properties": "^7.0.0-rc.1", "@babel/plugin-proposal-object-rest-spread": "^7.0.0-rc.1", "@babel/preset-env": "^7.0.0-rc.1", "@babel/preset-flow": "^7.0.0-rc.1", "babel-core": "^7.0.0-0", "babel-jest": "^23.4.2", "flow-bin": "0.95.1", "flow-copy-source": "^2.0.2", "flow-typed": "^2.5.1", "husky": "^1.3.1", "jest": "^23.5.0", "lint-staged": "^8.1.1", "nock": "^9.6.1", "node-fetch": "^2.2.0", "prettier": "^1.16.2", "typescript": "3.1.3" }, "dependencies": { "deep-equal": "^1.0.1", "graphql": "14.1.1", "jest-diff": "^23.6.0", "object-hash": "^1.3.1" }, "peerDependencies": { "nock": "^9.6.1" }, "jest": { "setupTestFrameworkScriptFile": "./setup/jest.setupFramework.js", "setupFiles": [ "./setup/jest.setup.js" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,json,md}": [ "prettier --write", "git add" ] }, "prettier": { "tabWidth": 2, "semi": true, "singleQuote": true, "printWidth": 80 } }