-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
98 lines (98 loc) · 3.25 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
{
"name": "empathy-search-engine",
"version": "0.1.0",
"author": "Daniel Somoza",
"private": true,
"homepage": "https://danisomoza.github.io/empathy-search-engine",
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"axios": "^0.20.0",
"query-string": "^6.13.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-infinite-scroll-component": "^5.1.0",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"deploy": "gh-pages -d build",
"eject": "react-scripts eject",
"test:jest:local": "react-scripts test --env=jsdom",
"test:cypress:local": "cypress open",
"test:local": "npm run test:jest:local && npm run test:cypress:local",
"test:jest": "react-scripts test --env=jsdom --coverage --coverageDirectory=coverage-jest --reporters=\"default\" --reporters=\"jest-junit\" --watchAll=false --ci",
"start:integration": "react-scripts -r @cypress/instrument-cra start",
"test:cypress": "start-server-and-test start:integration http://localhost:3000 cy:run",
"cy:run": "cypress run",
"test": "npm run test:jest && npm run test:cypress",
"posttest": "npm run report:combined",
"mkdir:reports": "mkdir reports || true",
"precopy:reports": "npm run mkdir:reports",
"copy:reports": "cp coverage-cypress/coverage-final.json reports/from-cypress.json && cp coverage-jest/coverage-final.json reports/from-jest.json",
"precombine:reports": "npm run copy:reports && mkdir .nyc_output || true",
"combine:reports": "nyc merge reports && mv coverage.json .nyc_output/out.json",
"prereport:combined": "npm run combine:reports",
"report:combined": "nyc report --reporter lcov --report-dir coverage",
"postreport:combined": "rimraf -rf reports coverage-cypress coverage-jest .nyc_output"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@cypress/code-coverage": "1.10.4",
"@cypress/instrument-cra": "1.0.0",
"@testing-library/cypress": "5.0.2",
"cypress": "5.2.0",
"cypress-file-upload": "4.0.6",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"gh-pages": "^3.1.0",
"istanbul-lib-coverage": "3.0.0",
"jest": "24.9.0",
"jest-junit": "10.0.0",
"moxios": "^0.4.0",
"nyc": "15.0.0",
"prettier": "^2.1.2",
"start-server-and-test": "1.10.8"
},
"nyc": {
"require": [
"babel-register"
],
"all": true,
"report-dir": "coverage-cypress",
"include": [
"src/**/*.js"
],
"exclude": [
"src/**/*.test.js"
],
"sourceMap": false,
"instrument": false
},
"jest-junit": {
"suiteName": "react-scripts test",
"outputDirectory": "./coverage/",
"outputName": "./junit.xml",
"classNameTemplate": "{classname}-{title}",
"titleTemplate": "{classname}-{title}",
"ancestorSeparator": " > ",
"usePathForSuiteName": true
}
}