Merge "Added tests to improve coverage"
[policy/gui.git] / gui-clamp / ui-react / package.json
1 {
2     "name": "onap-policy-clamp-ui",
3     "version": "${project.version}",
4     "description": "ONAP Policy Clamp UI",
5     "author": "ONAP Policy Team",
6     "license": "Apache-2.0",
7     "publishConfig": {
8         "registry": "${npm.publish.url}"
9     },
10     "main": "index.js",
11     "homepage": ".",
12     "proxy": "https://localhost:8443",
13     "scripts": {
14         "start": "HTTPS=true react-scripts start",
15         "build": "react-scripts build",
16         "test": "jest",
17         "test:watch": "jest --watch",
18         "test:coverage": "jest --coverage",
19         "eject": "react-scripts eject"
20     },
21     "files": [
22         "src/*.js",
23         "src/*.png",
24         "src/api",
25         "src/components",
26         "src/theme"
27     ],
28     "dependencies": {
29         "@fortawesome/fontawesome-free": "5.15.3",
30         "@json-editor/json-editor": "2.5.4",
31         "@material-ui/core": "4.11.4",
32         "@material-ui/icons": "4.11.2",
33         "@material-ui/lab": "4.0.0-alpha.58",
34         "@material-ui/pickers": "3.3.10",
35         "bootstrap-css-only": "4.4.1",
36         "js-yaml": "4.1.0",
37         "material-table": "1.68.0",
38         "react": "17.0.2",
39         "react-bootstrap": "1.6.1",
40         "react-dom": "17.0.2",
41         "react-router-dom": "5.2.0",
42         "react-scripts": "4.0.3",
43         "react-select": "4.3.1",
44         "styled-components": "5.3.0"
45     },
46     "devDependencies": {
47         "@babel/plugin-proposal-class-properties": "7.14.5",
48         "@babel/preset-env": "7.14.7",
49         "@babel/preset-react": "7.14.5",
50         "@wojtekmaj/enzyme-adapter-react-17": "0.6.2",
51         "enzyme": "3.11.0",
52         "enzyme-adapter-react-17-updated": "1.0.2",
53         "enzyme-to-json": "3.6.2",
54         "history": "5.0.0",
55         "jest": "26.6.0",
56         "jest-canvas-mock": "2.3.1",
57         "jest-fetch-mock": "3.0.3",
58         "jest-sonar-reporter": "2.0.0"
59     },
60     "browserslist": [
61         ">0.2%",
62         "not dead",
63         "not ie <= 11",
64         "not op_mini all"
65     ],
66     "jest": {
67         "verbose": true,
68         "collectCoverage": true,
69         "coverageDirectory": "${project.build.directory}/code-coverage",
70         "collectCoverageFrom": [
71             "**/*.{js,jsx}"
72         ],
73         "testResultsProcessor": "jest-sonar-reporter",
74         "rootDir": "${project.build.directory}/${ui.react.src}",
75         "coverageReporters": [
76             "lcov"
77         ],
78         "moduleNameMapper": {
79             "\\.(css|png)$": "identity-obj-proxy"
80         },
81         "setupFiles": [
82             "./src/setupTests.js",
83             "jest-canvas-mock"
84         ],
85         "snapshotSerializers": [
86             "enzyme-to-json/serializer"
87         ]
88     },
89     "jestSonar": {
90         "reportPath": "../../target/reports",
91         "reportFile": "test-reporter.xml",
92         "indent": 4,
93         "sonar56x": true
94     },
95     "babel": {
96         "presets": [
97             "@babel/preset-env",
98             "@babel/preset-react"
99         ],
100         "plugins": [
101             [
102                 "@babel/plugin-proposal-class-properties",
103                 {
104                     "loose": true
105                 }
106             ],
107             [
108                 "@babel/plugin-transform-runtime"
109             ],
110             [
111                 "@babel/plugin-proposal-private-methods",
112                 {
113                     "loose": true
114                 }
115             ]
116         ]
117     }
118 }