Skip to content

Commit 4f9e8de

Browse files
committed
chore(deps): update cypress-slack-reporter cypress project
1 parent 27be737 commit 4f9e8de

File tree

8 files changed

+22
-14
lines changed

8 files changed

+22
-14
lines changed

.github/workflows/build-cypress-slack-reporter-old.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- run: make test
4141
- run: make combine-reports && make generate-report
4242
- name: get artifacts 1
43-
uses: actions/upload-artifact@v3
43+
uses: actions/upload-artifact@v4
4444
with:
4545
name: test-output-1
4646
path: |
@@ -57,7 +57,7 @@ jobs:
5757
- run: npm run slack-js-opts-build-failed
5858
- run: npm run cli
5959
- name: get artifacts 2
60-
uses: actions/upload-artifact@v3
60+
uses: actions/upload-artifact@v4
6161
with:
6262
name: test-output-2
6363
path: |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
reporter: 'cypress-multi-reporters',
5+
reporterOptions: {
6+
configFile: 'reporterOpts.json',
7+
},
8+
projectId: '9f1jyc',
9+
e2e: {
10+
// We've imported your old cypress plugins here.
11+
// You may want to clean this up later by importing these.
12+
setupNodeEvents(on, config) {
13+
return require('./cypress/plugins/index.js')(on, config)
14+
},
15+
baseUrl: 'https://the-internet.herokuapp.com',
16+
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
17+
},
18+
})

cypress-slack-reporter-old/cypress.json

-9
This file was deleted.

cypress-slack-reporter-old/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"@commitlint/config-conventional": "19.5.0",
6969
"@cypress/webpack-preprocessor": "6.0.2",
7070
"@types/bluebird": "3.5.42",
71-
"@types/dotenv": "8.2.3",
7271
"@types/jest": "29.5.14",
7372
"@types/node": "22.7.9",
7473
"aws-sdk": "2.1691.0",

cypress-slack-reporter-old/src/slack/slack-alert.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const log = pino({
1616
});
1717

1818
const isWin = process.platform === "win32";
19-
const buildUrl = (...urlComponents: Array<(string | undefined)>) => {
19+
const buildUrl = (...urlComponents: (string | undefined)[]) => {
2020
return (
2121
urlComponents
2222
// Trim leading & trailing slashes

cypress-slack-reporter-old/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"commander/typings",
2222
"aws-sdk-mock",
2323
"cypress",
24-
"@types/dotenv",
24+
"dotenv",
2525
"slack-mock-typed"
2626
]
2727
},

0 commit comments

Comments
 (0)