Skip to content

Commit

Permalink
chore: remove slack-node and scripts that use it (#2620)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast authored Dec 19, 2023
1 parent 928dd92 commit fe4e623
Show file tree
Hide file tree
Showing 25 changed files with 20 additions and 595 deletions.
6 changes: 1 addition & 5 deletions frontend/audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
"high": true,
"allowlist": [
"json5", // jest, eslint, testcafe, next, babel
"parse-url", // lerna
"parse-path", // lerna
"moment", // testcafe
"http-cache-semantics", // testcafe
"requestretry", // slack-node
"decode-uri-component", // testcafe, lerna
"@babel/traverse", // jest
"sharp" // next / TET project
"@babel/traverse" // jest
]
}
1 change: 0 additions & 1 deletion frontend/benefit/applicant/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ next-i18next.config.js
.eslintrc.js
jest.config.js
.testcaferc.js
reporter.config.js
2 changes: 1 addition & 1 deletion frontend/benefit/applicant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:coverage": "yarn test --verbose --coverage",
"browser-test": "testcafe 'chrome --allow-insecure-localhost --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' browser-tests/pages/*.testcafe.ts",
"browser-test:headless": "testcafe 'chrome:headless --allow-insecure-localhost --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' browser-tests/pages/*.testcafe.ts",
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/pages/*.testcafe.ts"
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,html:report/index.html browser-tests/pages/*.testcafe.ts"
},
"dependencies": {
"@frontend/benefit-shared": "*",
Expand Down
7 changes: 0 additions & 7 deletions frontend/benefit/applicant/reporter.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/benefit/handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:staged": "yarn test --watchAll=false --findRelatedTests",
"test:coverage": "yarn test --verbose --coverage",
"browser-test": "testcafe 'chrome --allow-insecure-localhost --disable-web-security --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' browser-tests/pages/",
"browser-test:ci": "testcafe 'chrome:headless --allow-insecure-localhost --disable-web-security --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/pages/ --experimental-proxyless"
"browser-test:ci": "testcafe 'chrome:headless --allow-insecure-localhost --disable-web-security --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' --screenshots path=report --video report --reporter spec,html:report/index.html browser-tests/pages/ --experimental-proxyless"
},
"dependencies": {
"@frontend/benefit-shared": "*",
Expand Down
7 changes: 0 additions & 7 deletions frontend/benefit/handler/reporter.config.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/kesaseteli/employer/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ next-i18next.config.js
.eslintrc.js
jest.config.js
.testcaferc.js
reporter.config.js
2 changes: 1 addition & 1 deletion frontend/kesaseteli/employer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:staged": "yarn test --watchAll=false --findRelatedTests",
"test:coverage": "yarn test --verbose --coverage",
"browser-test": "testcafe 'chrome --allow-insecure-localhost --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' browser-tests/ --experimental-proxyless",
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/ --experimental-proxyless"
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,html:report/index.html browser-tests/ --experimental-proxyless"
},
"dependencies": {
"@frontend/kesaseteli-shared": "*",
Expand Down
7 changes: 0 additions & 7 deletions frontend/kesaseteli/employer/reporter.config.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/kesaseteli/handler/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ next-i18next.config.js
.eslintrc.js
jest.config.js
.testcaferc.js
reporter.config.js
2 changes: 1 addition & 1 deletion frontend/kesaseteli/handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:staged": "yarn test --watchAll=false --findRelatedTests",
"test:coverage": "yarn test:debug-dom --verbose --coverage",
"browser-test": "testcafe 'chrome --allow-insecure-localhost --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' browser-tests/ --experimental-proxyless",
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/ --experimental-proxyless"
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,html:report/index.html browser-tests/ --experimental-proxyless"
},
"dependencies": {
"@frontend/kesaseteli-shared": "*",
Expand Down
7 changes: 0 additions & 7 deletions frontend/kesaseteli/handler/reporter.config.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/kesaseteli/youth/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ next-i18next.config.js
.eslintrc.js
jest.config.js
.testcaferc.js
reporter.config.js
4 changes: 2 additions & 2 deletions frontend/kesaseteli/youth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"test:staged": "yarn test --watchAll=false --findRelatedTests",
"test:coverage": "yarn test:debug-dom --verbose --coverage",
"browser-test": "testcafe 'chrome --allow-insecure-localhost --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' browser-tests/ --experimental-proxyless",
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/ --experimental-proxyless",
"browser-test:wsl2win": "testcafe 'path:`/mnt/c/Program Files/Google/Chrome/Application/chrome.exe` --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --live --dev --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/"
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,html:report/index.html browser-tests/ --experimental-proxyless",
"browser-test:wsl2win": "testcafe 'path:`/mnt/c/Program Files/Google/Chrome/Application/chrome.exe` --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --live --dev --screenshots path=report --video report --reporter spec,html:report/index.html browser-tests/"
},
"dependencies": {
"@frontend/kesaseteli-shared": "*",
Expand Down
7 changes: 0 additions & 7 deletions frontend/kesaseteli/youth/reporter.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
"@types/react-leaflet": "^2.8.2",
"@types/react-leaflet-markercluster": "^3.0.0",
"@types/react-table": "^7.7.0",
"@types/slack-node": "^0.1.4",
"@types/styled-components": "^5.1.24",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^5.28.0",
Expand Down Expand Up @@ -149,9 +148,7 @@
"prettier": "^2.5.1",
"pretty": "^2.0.0",
"react-i18next": "^12.2.0",
"slack-node": "^0.2.0",
"testcafe": "^3.3.0",
"testcafe-reporter-custom": "^1.2.1",
"testcafe-reporter-html": "^1.4.6",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
Expand Down
92 changes: 0 additions & 92 deletions frontend/shared/browser-tests/reporter/slackMessageSender.ts

This file was deleted.

118 changes: 0 additions & 118 deletions frontend/shared/browser-tests/reporter/slackReporter.ts

This file was deleted.

12 changes: 0 additions & 12 deletions frontend/shared/browser-tests/reporter/utils/emojis.ts

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/tet/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:coverage": "yarn test:debug-dom --verbose --coverage",
"test:debug-nock": "cross-env DEBUG=nock.* yarn test",
"browser-test": "cross-env LOCAL_TEST_RUN=1 testcafe 'chrome --allow-insecure-localhost --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' browser-tests/ --experimental-proxyless",
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/",
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,html:report/index.html browser-tests/",
"lint": "eslint --ext js,ts,tsx src"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions frontend/tet/admin/reporter.config.js

This file was deleted.

Loading

0 comments on commit fe4e623

Please sign in to comment.