forked from nareshbhatia/react-testing-techniques
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
122 lines (122 loc) · 3.2 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "react-testing-techniques",
"description": "Best practices in testing React applications",
"version": "0.1.0",
"author": "Naresh Bhatia",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/nareshbhatia/react-testing-techniques"
},
"scripts": {
"build": "react-scripts build",
"build-storybook": "build-storybook -s public",
"cypress:open": "cypress open",
"eject": "react-scripts eject",
"format": "prettier --write README.md \"src/**/{*.md,*.json,*.css,*.ts*}\" \"cypress/integration/**/*\"",
"lint": "eslint src",
"start": "react-scripts start",
"storybook": "start-storybook -p 6006 -s public",
"test": "yarn lint && yarn test:coverage",
"test:coverage": "react-scripts test --coverage --watchAll=false",
"test:update": "react-scripts test --watchAll=false --updateSnapshot",
"test:watch": "react-scripts test"
},
"dependencies": {
"@hookform/resolvers": "^2.8.3",
"@http-utils/core": "^1.1.0",
"@react-force/number-utils": "^2.1.0",
"axios": "^0.24.0",
"history": "^5.1.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-hook-form": "^7.18.1",
"react-icons": "^4.3.1",
"react-query": "^3.31.0",
"react-router-dom": "^6.0.0",
"uuid": "^8.3.2",
"web-vitals": "^1.1.2",
"yup": "^0.32.11"
},
"devDependencies": {
"@storybook/addon-actions": "^6.3.12",
"@storybook/addon-essentials": "^6.3.12",
"@storybook/addon-links": "^6.3.12",
"@storybook/node-logger": "^6.3.12",
"@storybook/preset-create-react-app": "^3.2.0",
"@storybook/react": "^6.3.12",
"@testing-library/dom": "^8.11.0",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.0.2",
"@types/node": "^16.11.6",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.11",
"@types/uuid": "^8.3.1",
"@types/yup": "^0.29.13",
"cypress": "^8.7.0",
"husky": "^4.3.8",
"msw": "^0.35.0",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1",
"react-scripts": "^4.0.3",
"typescript": "^4.4.4"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
],
"rules": {},
"overrides": [
{
"files": [
"**/*.ts?(x)"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error"
}
}
]
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && npm run test:coverage"
}
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.stories.{js,jsx,ts,tsx}",
"!src/mocks/**",
"!src/stories/**",
"!src/test/**",
"!src/index.tsx",
"!src/reportWebVitals.ts"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"msw": {
"workerDirectory": "public"
}
}