Skip to content

Commit 27be737

Browse files
committed
chore(deps): update cypress-slack-reporter old deps
1 parent c2fb278 commit 27be737

File tree

5 files changed

+3226
-3094
lines changed

5 files changed

+3226
-3094
lines changed
+28-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
11
module.exports = {
2-
globals: {
3-
"ts-jest": {
4-
tsconfig: "tsconfig.jest.json",
5-
},
6-
},
7-
testRegex: ".*.test.ts",
8-
moduleFileExtensions: ["ts", "js"],
2+
testRegex: '.*.test.ts',
3+
moduleFileExtensions: [
4+
'js',
5+
'ts',
6+
],
97
transform: {
10-
"\\.ts": "ts-jest",
8+
'\\.ts': [
9+
'ts-jest',
10+
{
11+
tsconfig: 'tsconfig.jest.json',
12+
},
13+
],
14+
'^.+.tsx?$': [
15+
'ts-jest',
16+
{
17+
tsconfig: 'tsconfig.jest.json',
18+
},
19+
],
1120
},
12-
testEnvironment: "node",
13-
reporters: ["default", "jest-junit", "jest-stare"],
14-
coverageDirectory: "./coverage",
21+
testEnvironment: 'node',
22+
reporters: [
23+
'default',
24+
'jest-junit',
25+
'jest-stare',
26+
],
27+
coverageDirectory: './coverage',
1528
collectCoverage: true,
16-
setupFiles: ["./src/slack/test/setup-tests.ts"],
17-
};
29+
setupFiles: [
30+
'./src/slack/test/setup-tests.ts',
31+
],
32+
}

cypress-slack-reporter-old/package.json

+42-44
Original file line numberDiff line numberDiff line change
@@ -47,62 +47,60 @@
4747
"release:trigger": "./scripts/trigger-release.sh"
4848
},
4949
"dependencies": {
50-
"@slack/types": "^2.8.0",
51-
"@slack/webhook": "^6.1.0",
52-
"@types/commander": "^2.12.2",
53-
"@types/pino": "^6.3.12",
54-
"commander": "^7.2.0",
55-
"del": "^6.1.1",
56-
"dotenv": "16.0.0",
57-
"pino": "^6.14.0"
50+
"@slack/types": "^2.14.0",
51+
"@slack/webhook": "^7.0.3",
52+
"@types/commander": "^2.12.5",
53+
"@types/pino": "^7.0.5",
54+
"commander": "^12.1.0",
55+
"del": "^8.0.0",
56+
"dotenv": "16.4.5",
57+
"pino": "^9.5.0"
5858
},
5959
"peerDependencies": {
6060
"mochawesome": ">= 3.1.2",
6161
"mochawesome-merge": ">= 1.0.7",
6262
"mochawesome-report-generator": ">= 3.1.5"
6363
},
6464
"devDependencies": {
65-
"@babel/core": "7.17.9",
66-
"@babel/preset-env": "7.16.11",
67-
"@commitlint/cli": "16.2.3",
68-
"@commitlint/config-conventional": "16.2.1",
69-
"@cypress/webpack-preprocessor": "5.11.1",
70-
"@types/bluebird": "3.5.36",
71-
"@types/dotenv": "6.1.1",
72-
"@types/jest": "27.4.1",
73-
"@types/node": "10.17.60",
74-
"aws-sdk": "2.1120.0",
75-
"aws-sdk-mock": "5.6.2",
76-
"babel-loader": "8.2.5",
65+
"@babel/core": "7.25.9",
66+
"@babel/preset-env": "7.25.9",
67+
"@commitlint/cli": "19.5.0",
68+
"@commitlint/config-conventional": "19.5.0",
69+
"@cypress/webpack-preprocessor": "6.0.2",
70+
"@types/bluebird": "3.5.42",
71+
"@types/dotenv": "8.2.3",
72+
"@types/jest": "29.5.14",
73+
"@types/node": "22.7.9",
74+
"aws-sdk": "2.1691.0",
75+
"aws-sdk-mock": "6.2.0",
76+
"babel-loader": "9.2.1",
7777
"coveralls": "3.1.1",
78-
"cypress": "9.5.4",
79-
"cypress-multi-reporters": "1.6.0",
80-
"dotenv": "16.0.0",
78+
"cypress": "13.15.1",
79+
"cypress-multi-reporters": "1.6.4",
8180
"globby": "11.1.0",
82-
"husky": "7.0.4",
83-
"jest": "27.5.1",
84-
"jest-junit": "12.3.0",
85-
"jest-stare": "2.4.1",
86-
"lint-staged": "10.5.4",
87-
"mocha": "8.4.0",
88-
"mocha-junit-reporter": "2.0.2",
89-
"mochawesome": "6.3.1",
90-
"mochawesome-merge": "4.2.1",
91-
"mochawesome-report-generator": "5.2.0",
92-
"prettier": "2.6.2",
93-
"rimraf": "3.0.2",
94-
"s3-batch-upload": "1.5.0",
81+
"husky": "9.1.6",
82+
"jest": "29.7.0",
83+
"jest-junit": "16.0.0",
84+
"jest-stare": "2.5.2",
85+
"lint-staged": "15.2.10",
86+
"mocha": "10.7.3",
87+
"mocha-junit-reporter": "2.2.1",
88+
"mochawesome": "7.1.3",
89+
"mochawesome-merge": "4.3.0",
90+
"mochawesome-report-generator": "6.2.0",
91+
"prettier": "3.3.3",
92+
"rimraf": "6.0.1",
93+
"s3-batch-upload": "1.5.2",
9594
"slack-mock-typed": "2.4.0",
96-
"standard-version": "9.3.2",
97-
"ts-jest": "27.1.4",
98-
"ts-loader": "9.2.8",
99-
"ts-node": "10.7.0",
100-
"tslint": "5.20.1",
95+
"standard-version": "9.5.0",
96+
"ts-jest": "29.2.5",
97+
"ts-loader": "9.5.1",
98+
"ts-node": "10.9.2",
99+
"tslint": "6.1.3",
101100
"tslint-config-prettier": "1.18.0",
102101
"tslint-no-focused-test": "0.5.0",
103-
"typescript": "4.6.3",
104-
"webpack": "5.72.0",
105-
"winston": "3.7.2"
102+
"typescript": "5.6.3",
103+
"webpack": "5.95.0"
106104
},
107105
"lint-staged": {
108106
"src/**/*.ts": [

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import * as fs from "fs";
1111
import * as globby from "globby";
1212
import * as path from "path";
13-
import * as pino from "pino";
13+
import { pino } from "pino";
1414
const log = pino({
1515
level: process.env.LOG_LEVEL ? process.env.LOG_LEVEL : "info",
1616
});
@@ -601,7 +601,7 @@ const getVideoLinks = async ({
601601
return "";
602602
} else {
603603
const videoLinks = await Promise.all(
604-
videos.map((videoObject) => {
604+
videos.map((videoObject:string) => {
605605
const trimmedVideoFilename = path.basename(videoObject);
606606

607607
return `<${buildUrl(
@@ -643,7 +643,7 @@ const getScreenshotLinks = async ({
643643
return "";
644644
} else {
645645
const screenshotLinks = await Promise.all(
646-
screenshots.map((screenshotObject) => {
646+
screenshots.map((screenshotObject:string) => {
647647
const trimmedScreenshotFilename = path.basename(screenshotObject);
648648

649649
return `<${buildUrl(

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,15 @@ describe("attachmentReports tester", () => {
274274
ciEnvVars: envVars,
275275
});
276276
expect(s).toMatchInlineSnapshot(`
277-
Object {
278-
"actions": Array [
279-
Object {
277+
{
278+
"actions": [
279+
{
280280
"style": "primary",
281281
"text": "Test Report",
282282
"type": "button",
283283
"url": "test",
284284
},
285-
Object {
285+
{
286286
"style": "primary",
287287
"text": "Build Logs",
288288
"type": "button",
@@ -314,15 +314,15 @@ describe("attachmentReports tester", () => {
314314
ciEnvVars: envVars,
315315
});
316316
expect(s).toMatchInlineSnapshot(`
317-
Object {
318-
"actions": Array [
319-
Object {
317+
{
318+
"actions": [
319+
{
320320
"style": "primary",
321321
"text": "Test Report",
322322
"type": "button",
323323
"url": "test",
324324
},
325-
Object {
325+
{
326326
"style": "primary",
327327
"text": "Build Logs",
328328
"type": "button",
@@ -355,9 +355,9 @@ describe("attachmentReports tester", () => {
355355
ciEnvVars: envVars,
356356
});
357357
expect(s).toMatchInlineSnapshot(`
358-
Object {
359-
"actions": Array [
360-
Object {
358+
{
359+
"actions": [
360+
{
361361
"style": "danger",
362362
"text": "Build Logs",
363363
"type": "button",

0 commit comments

Comments
 (0)