-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
221 lines (221 loc) · 16 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
{
"name": "probate-frontend",
"description": "Probate NodeJS web app",
"version": "4.1.3",
"private": true,
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"setup": "NODE_PATH=. yarn git-info && yarn sass && yarn sass-ie8",
"setup-sass": "NODE_PATH=. 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:dev:ld:aat": "NODE_ENV=dev-aat NODE_PATH=. nodemon -e js,json,html,njk -x 'node server.js'",
"start:dev:ld:pr": "NODE_ENV=dev-pr NODE_PATH=. nodemon -e js,json,html,njk -x 'node server.js'",
"start:dev:ld:orch": "NODE_ENV=dev-aat ORCHESTRATOR_SERVICE_URL=http://localhost:8888 NODE_PATH=. nodemon -e js,json,html,njk -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": "npx if-env CI=true && mkdir -m 777 output && exit 0 || 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 --unhandled-rejections=strict",
"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 --reporter mochawesome --reporter-options reportDir=output,reportFilename=results --recursive --timeout 15000 --grep",
"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": "yarn playwright install && 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_ENV=test NODE_PATH=. LOG_LEVEL=error mocha 'test/contract/pact/**' --timeout 10000 --reporter spec",
"publish-pact": "NODE_ENV=test NODE_PATH=. LOG_LEVEL=error mocha 'test/contract/publish/*.js' --timeout 10000 --reporter spec",
"test:pact:run-and-publish": "yarn test-pact && yarn publish-pact",
"lint": "NODE_PATH=. eslint .",
"eslint": "NODE_PATH=. eslint .",
"test:functional": "NODE_ENV=test yarn test-contract && NODE_ENV=test yarn test-e2e-http-launch-darkly",
"test:fullfunctional": "yarn playwright install && NODE_ENV=test-dk NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run-multiple parallel -c ./test/end-to-end/ --steps --grep '@e2enightly'",
"test:fullfunctional-pr": "yarn playwright install && NODE_ENV=test-dk NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run-multiple parallel -c ./test/end-to-end/ --steps --grep '@e2enightly-pr'",
"test:fullfunctional:dev-aat:single": "TEST_HEADLESS=false NODE_ENV=dev-aat NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --verbose --grep '@runningNow'",
"test:fullfunctional:dev-aat:parallel": "TEST_HEADLESS=true NODE_ENV=dev-aat NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run-multiple parallel -c ./test/end-to-end/ --steps --grep '@e2enightly'",
"test:coverage": "NODE_ENV=test NODE_PATH=. nyc --reporter=lcov --reporter-options reportDir=output,reportFilename=results mocha './test/unit/**/test*.js' './test/component/**/test*.js' --timeout 10000 --recursive --exit",
"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"
},
"pre-commit": [
"lint"
],
"dependencies": {
"@hmcts/nodejs-healthcheck": "^1.8.0",
"@hmcts/nodejs-logging": "^4.0.4",
"@hmcts/os-places-client": "^1.1.7",
"@hmcts/properties-volume": "^1.0.0",
"@wdio/cli": "^8.10.5",
"@wdio/selenium-standalone-service": "^8.10.4",
"ajv": "^6.12.6",
"ajv-keywords": "^3.5.2",
"applicationinsights": "^2.5.0",
"basic-auth": "^2.0.1",
"body-parser": "^1.20.3",
"cheerio": "^1.0.0-rc.12",
"co": "^4.6.0",
"config": "^3.3.9",
"connect-redis": "^8.0.0",
"connect-timeout": "^1.9.0",
"cookie-parser": "^1.4.6",
"csurf": "^1.10.0",
"debug": "^4.3.4",
"email-validator": "^2.0.4",
"express": "^4.21.0",
"express-session": "^1.17.3",
"file-type": "^12.4.2",
"get-port": "^4.2.0",
"git-rev-sync": "^3.0.2",
"govuk-frontend": "^4.9.0",
"helmet": "^3.23.3",
"hpkp": "^3.0.0",
"http-terminator": "^3.0.0",
"https-proxy-agent": "^5.0.1",
"i18next": "^24.0.0",
"ioredis": "^5.0.0",
"ip": "^2.0.1",
"jquery": "^3.6.4",
"js-yaml": "^4.0.0",
"jsdom": "^25.0.0",
"launchdarkly-node-server-sdk": "^7.0.0",
"lodash": "^4.17.21",
"mocha-lcov-reporter": "^1.3.0",
"moment": "^2.29.4",
"multer": "1.4.5-lts.1",
"nocache": "^4.0.0",
"node-cache": "^5.1.2",
"node-emoji": "^2.0.0",
"node-fetch": "^2.6.9",
"node-git-info-json": "^0.1.1",
"numeral": "^2.0.6",
"nunjucks": "^3.2.4",
"otp": "^0.1.3",
"pa11y": "^8.0.0",
"randomstring": "^1.2.3",
"readdir": "^1.0.0",
"request": "^2.88.2",
"require-directory": "^2.1.1",
"sanitizer": "^0.1.3",
"serve-favicon": "^2.5.0",
"simple-random": "^1.0.3",
"superagent": "^10.0.0",
"tar": "^7.0.0",
"traverse": "^0.6.7",
"tunnel-agent": "^0.6.0",
"uuid": "^11.0.0",
"validator": "^13.9.0",
"webdriverio": "^8.10.5",
"ws": "^8.17.1"
},
"devDependencies": {
"@pact-foundation/pact": "^13.0.0",
"@pact-foundation/pact-node": "^10.18.0",
"@playwright/test": "^1.41.2",
"@types/node": "^22.0.0",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.3.0",
"chai-string": "^1.5.0",
"codeceptjs": "^3.4.1",
"eslint": "^8.0.0",
"eslint-plugin-mocha": "^10.0.0",
"if-env": "^1.0.4",
"ip": "^2.0.1",
"mocha": "^11.0.0",
"mocha-jenkins-reporter": "^0.4.8",
"mocha-junit-reporter": "^2.0.0",
"mocha-multi": "^1.1.7",
"mochawesome": "^7.1.3",
"nock": "^13.3.1",
"node-sass": "^9.0.0",
"nodemon": "^3.0.3",
"nyc": "^17.0.0",
"phantomjs-prebuilt": "^2.1.16",
"pre-commit": "^1.2.2",
"proxyquire": "^2.1.3",
"rewire": "^7.0.0",
"selenium-standalone": "^10.0.0",
"sinon": "^19.0.0",
"sinon-chai": "^3.7.0",
"sonar-scanner": "^3.1.0",
"sonarqube-scanner": "^4.0.0",
"superagent-proxy": "^3.0.0",
"supertest": "^7.0.0",
"unirest": "^0.6.0",
"uuid": "^11.0.0",
"watch": "^1.0.0",
"when": "^3.7.8"
},
"resolutions": {
"hosted-git-info": "^8.0.0",
"http-cache-semantics": ">=4.1.1",
"ip": "^2.0.1",
"shelljs": ">=0.8.5",
"minimist": "^1.2.8",
"async": ">=2.6.4",
"cookie": "^1.0.1",
"cookiejar": ">=2.1.4",
"puppeteer": "^23.2.0",
"express": "^4.21.0",
"qs": ">=6.9.7",
"formidable": "^3.5.1",
"@azure/msal-node": "^2.9.2",
"@azure/identity": "^4.2.1",
"braces": "^3.0.3",
"path-to-regexp": "^0.1.10",
"import-in-the-middle": "^1.11.2",
"cross-spawn": "^7.0.5"
},
"packageManager": "[email protected]"
}