-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
90 lines (90 loc) · 2.09 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"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
}
}