forked from hmcts/probate-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
195 lines (195 loc) · 14.4 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"name": "probate-frontend",
"description": "Probate NodeJS web app",
"version": "4.1.2",
"private": true,
"engines": {
"node": ">=14.9.3"
},
"scripts": {
"setup": "NODE_PATH=. yarn git-info && yarn sass && yarn sass-ie8",
"start": "NODE_PATH=. node server.js",
"start:ld": "NODE_ENV=dev NODE_PATH=. node server.js",
"debug": "NODE_PATH=. node inspect server.js",
"prestart:dev": "yarn sass:watch",
"start:dev": "NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"start:dev:ld": "NODE_ENV=dev NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"start:test-context-http": "NODE_ENV=testing-http NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"start:test-context-http:dk": "NODE_ENV=testing-http-dk NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"start:test-context": "NODE_ENV=testing NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"start:test-context:dk": "NODE_ENV=testing-dk NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"sass:watch": "NODE_PATH=. watch 'yarn -s sass' app/assets/sass/ &",
"sass": "NODE_PATH=. node-sass app/assets/sass/application.scss --output public/stylesheets --quiet --output-style expanded --source-map true --include-path node_modules/govuk_frontend",
"sass-ie8": "NODE_PATH=. node-sass app/assets/sass/application-ie8.scss --output public/stylesheets --quiet --output-style expanded --source-map true --include-path node_modules/govuk_frontend",
"test": "yarn test-unit $@ && yarn test-component $@",
"test-unit": "NODE_ENV=testing-unit NODE_PATH=. LOG_LEVEL=error mocha test/unit --reporter mochawesome --reporter-options reportDir=output,reportFilename=results --recursive --timeout 15000",
"test-unit-healthcheck": "NODE_ENV=testing-unit NODE_PATH=. LOG_LEVEL=error mocha test/unit/utils/testSetupHealthCheck.js --reporter mochawesome --reporter-options reportDir=output,reportFilename=results --recursive --timeout 15000",
"test-unit-grep": "NODE_ENV=testing-unit NODE_PATH=. LOG_LEVEL=error mocha test/unit --grep 'PCQ feature toggle is ON and health is DOWN' --reporter mochawesome --reporter-options reportDir=output,reportFilename=results --recursive --timeout 15000",
"test-component": "NODE_ENV=testing-component NODE_PATH=. LOG_LEVEL=error mocha test/component --reporter spec --recursive --timeout 15000",
"test-component-death-cert": "NODE_ENV=testing-component NODE_PATH=. LOG_LEVEL=error mocha test/component/deceased/testDeathCertificate.js --reporter spec --recursive --timeout 15000",
"test-component-web-chat": "NODE_ENV=testing-component NODE_PATH=. LOG_LEVEL=error mocha test/component/static/testAvayaWebchat.js --reporter spec --recursive --timeout 15000",
"test:a11y": "NODE_ENV=testing NODE_PATH=. LOG_LEVEL=ERROR mocha --exit test/accessibility --reporter spec --recursive --timeout 15000 --exit --reporter mochawesome --reporter-options reportDir=functional-output,reportFilename=a11y",
"test-accessibility": "NODE_ENV=testing NODE_PATH=. LOG_LEVEL=error ENABLE_TRACKING=false mocha test/accessibility --timeout 30000",
"test-e2e": "NODE_ENV=testing-http NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run-multiple parallel -c ./test/end-to-end/ --steps --grep @e2enightly --reporter mocha-multi",
"test-e2e-launch-darkly": "NODE_ENV=testing-dk NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-http": "NODE_ENV=testing-http NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-http-launch-darkly": "NODE_ENV=testing-http-dk NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run-multiple parallel -c ./test/end-to-end/ --steps --grep @e2emaster --reporter mocha-multi",
"test-e2e-gop-single-exec-aat": "NODE_ENV=testing-e2e-local-to-aat NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/gopSingleExecutor.en.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-gop-creditCardPaymentCancellation-http": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/other/creditCardPaymentCancellation.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps",
"test-e2e-gop-single-exec-http": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/gopSingleExecutor.en.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps",
"test-e2e-gop-single-exec-http-webriver": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/gopSingleExecutor.en.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/codecept.webdriver.conf.js --steps --reporter mochawesome",
"test-e2e-gop-single-exec-http-dk": "NODE_ENV=testing-http-dk NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/gopSingleExecutor.en.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-gop-single-exec-EE-No-http-dk": "NODE_ENV=testing-http-dk NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/gopSingleExecutor.en.test.EE.no.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-gop-single-exec-EE-Yes-http-dk": "NODE_ENV=testing-http-dk NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/gopSingleExecutor.en.test.EE.yes.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-intestacy-http": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/intestacy/intestacy.en.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps",
"test-e2e-intestacy-http-webdriver": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/intestacy/intestacy.en.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/codecept.webdriver.conf.js --steps",
"test-e2e-intestacy-http-dk": "NODE_ENV=testing-http-dk NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/intestacy/intestacy.en.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-intestacy-spouse-http": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/intestacy/intestacy.spouse.en.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps",
"test-e2e-intestacy-spouse-http-dk": "NODE_ENV=testing-http-dk NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/intestacy/intestacy.en.test.EE.yes.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps",
"test-e2e-multiple-executors-http": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/multipleExecutors.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps",
"test-e2e-multiple-executors-http-dk": "NODE_ENV=testing-http-dk NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/multipleExecutors.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-multiple-executors-http-EE-No-dk": "NODE_ENV=testing-http-dk NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/multipleExecutors.EE.no.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps",
"test-e2e-multiple-executors-http-EE-Yes-dk": "NODE_ENV=testing-http-dk NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/probate/multipleExecutors.EE.yes.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps",
"test-e2e-cookie-banner-http": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/generic/cookiebanner.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-e2e-survey-http": "NODE_ENV=testing-http NODE_PATH=. FE_E2E_TEST_PATH_TO_RUN=./paths/generic/survey.test.js node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test-crossbrowser-e2e": "NODE_ENV=testing-http-dk NODE_PATH=. codeceptjs run-multiple ${BROWSER_GROUP:-'--all'} -c test/end-to-end/saucelabs.conf.js --plugins retryFailedStep --steps --grep '@crossbrowser' --reporter mocha-multi",
"test:crossbrowser": "./bin/run-crossbrowser-tests.sh",
"test:smoke": "NODE_ENV=test mocha test/smoke/healthcheck.js --timeout 25000 --reporter spec",
"test-contract": "NODE_ENV=test NODE_PATH=. LOG_LEVEL=error mocha 'test/contract/addresslookup/*.js' 'test/contract/generatepin/*.js' --timeout 10000 --reporter spec",
"test-api": "NODE_ENV=dev NODE_PATH=. LOG_LEVEL=error mocha 'test/api/*.js' --timeout 10000 --reporter spec --exit",
"test-pact": "NODE_PATH=. LOG_LEVEL=error mocha 'test/contract/pact/*.js' --timeout 10000 --reporter spec",
"publish-pact": "NODE_PATH=. LOG_LEVEL=error mocha 'test/contract/publish/*.js' --timeout 10000 --reporter spec",
"lint": "NODE_PATH=. eslint .",
"eslint": "NODE_PATH=. eslint .",
"test:nsp": "NODE_PATH=. nsp check",
"security": "NODE_PATH=. nsp check",
"test:functional": "NODE_ENV=test yarn test-contract && NODE_ENV=test yarn test-e2e-http-launch-darkly",
"test:codecov-upload": "NODE_PATH=. istanbul cover _mocha './test/**/test*.js' -- -R spec && codecov",
"test:coverage": "NODE_ENV=test NODE_PATH=. istanbul cover _mocha './test/unit/**/test*.js' './test/component/**/test*.js' -- --timeout 10000",
"sonar-scanner": "node_modules/sonar-scanner/bin/sonar-scanner",
"sonar-scan-comment": "cookies has been excluded by -Dcpd.exclusions - it is covered by both unit and component test yet reports incorrectly as not covered",
"sonar-scan": "node_modules/sonar-scanner/bin/sonar-scanner -Dsonar.projectName='Probate :: frontend' -Dsonar.sources=app -Dsonar.language=js -Dsonar.cpd.exclusions=app/journeys/*.js,app/**/*.njk,app/**/template.html,app/**/scripts.html,app/steps/**/index.js -Dsonar.exclusions=app/routes.js,app/components/launch-darkly.js,app/assets/**,app/**/scripts.html,app/steps/ui/static/cookies/index.js -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info",
"git-info": "node-git-info-json",
"//": "The below scripts are just stubs, don't use them in production",
"stub:s2s": "NODE_PATH=. NODE_ENV=test node test/service-stubs/idam.js",
"stub:fees-api": "NODE_PATH=. node test/service-stubs/feesApi.js",
"stub:submit": "NODE_PATH=. node test/service-stubs/submit.js",
"stub:orchestrator": "NODE_PATH=. node test/service-stubs/orchestrator.js",
"stub:business": "NODE_PATH=. node test/service-stubs/business.js",
"stub:payment": "NODE_PATH=. node test/service-stubs/payment.js",
"stub:multiple-applications": "NODE_PATH=. node test/service-stubs/multipleApplications.js",
"stub:equality-and-diversity-endpoint": "NODE_PATH=. node test/service-stubs/equalityAndDiversityEndpoint.js",
"stub:equality-and-diversity-health": "NODE_PATH=. node test/service-stubs/equalityAndDiversityHealth.js",
"fortifyScan": "./test/java/gradlew -p test/java fortifyScan",
"test:fullfunctional": "NODE_ENV=test-dk NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run-multiple parallel -c ./test/end-to-end/ --steps --grep '@e2enightly'"
},
"pre-commit": [
"lint"
],
"dependencies": {
"@hmcts/nodejs-healthcheck": "^1.7.0",
"@hmcts/nodejs-logging": "^4.0.2",
"@hmcts/os-places-client": "^1.1.2",
"@hmcts/properties-volume": "^0.0.13",
"@wdio/selenium-standalone-service": "^7.6.0",
"ajv": "^6.12.6",
"ajv-keywords": "^3.5.2",
"applicationinsights": "^2.3.3",
"basic-auth": "^2.0.1",
"body-parser": "^1.19.0",
"cheerio": "^1.0.0-rc.3",
"co": "^4.6.0",
"config": "^3.3.0",
"connect-redis": "^5.2.0",
"connect-timeout": "^1.9.0",
"cookie-parser": "^1.4.4",
"csurf": "^1.10.0",
"debug": "^4.3.2",
"email-validator": "^2.0.4",
"express": "^4.17.1",
"express-session": "^1.16.2",
"file-type": "^12.1.0",
"get-port": "^4.2.0",
"git-rev-sync": "^1.12.0",
"govuk-frontend": "^3.10.2",
"helmet": "^3.20.0",
"http-terminator": "^2.0.3",
"https-proxy-agent": "^5.0.0",
"i18next": "^17.0.11",
"ioredis": "^4.19.4",
"jquery": "^3.4.1",
"js-yaml": "^3.13.1",
"jsdom": "^16.6.0",
"launchdarkly-node-server-sdk": "^6.3.0",
"lodash": "^4.17.21",
"mocha-lcov-reporter": "^1.3.0",
"moment": "^2.29.2",
"multer": "^1.4.2",
"node-emoji": "^1.10.0",
"node-fetch": "^2.6.7",
"node-git-info-json": "^0.1.1",
"numeral": "^2.0.6",
"nunjucks": "^3.2.0",
"otp": "^0.1.3",
"randomstring": "^1.1.5",
"readdir": "^0.1.0",
"request": "^2.88.0",
"require-directory": "^2.1.1",
"sanitizer": "^0.1.3",
"serve-favicon": "^2.5.0",
"simple-random": "^1.0.3",
"superagent": "^5.1.0",
"traverse": "^0.6.6",
"tunnel-agent": "^0.6.0",
"uuid": "^8.3.1",
"validator": "^13.7.0"
},
"devDependencies": {
"@pact-foundation/pact": "^9.16.3",
"@pact-foundation/pact-node": "^10.13.8",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.3.0",
"chai-string": "^1.5.0",
"codacy-coverage": "3.2.0",
"codeceptjs": "^3.0.7",
"codecov": "^4.0.0-0",
"eslint": "^6.1.0",
"eslint-plugin-mocha": "^6.0.0",
"istanbul": "^1.1.0-alpha.1",
"mocha": "^6.2.1",
"mocha-jenkins-reporter": "^0.4.5",
"mocha-junit-reporter": "^1.23.3",
"mocha-multi": "^1.1.3",
"mochawesome": "^6.2.1",
"nock": "^10.0.6",
"node-sass": "^6.0.1",
"nodemon": "^2.0.7",
"nsp": "^3.2.1",
"pa11y": "^6.0.0",
"phantomjs-prebuilt": "^2.1.16",
"pre-commit": "^1.2.2",
"proxyquire": "^2.1.2",
"puppeteer": "^10.0.0",
"rewire": "^4.0.1",
"selenium-standalone": "^6.16.0",
"sinon": "^1.17.7",
"sinon-chai": "^3.3.0",
"sonar-scanner": "^3.1.0",
"sonarqube-scanner": "^2.5.0",
"superagent-proxy": "^2.1.0",
"supertest": "^4.0.2",
"unirest": "^0.6.0",
"uuid": "^8.3.1",
"watch": "^1.0.2",
"webdriverio": "^6.10.5",
"when": "^3.7.8"
},
"resolutions": {
"hosted-git-info": "4.0.1",
"launchdarkly-node-server-sdk/launchdarkly-eventsource/original/url-parse": "^1.5.10",
"shelljs": ">=0.8.5",
"minimist": "1.2.6",
"async": ">=2.6.4"
}
}