From 4bf8097e461641d9e6bcdef829ef7a4a4788b99c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 1 Jan 2025 03:55:48 +0000 Subject: [PATCH 1/2] chore(deps): update dependency @types/supertest to v6 --- package-lock.json | 11 ++++++----- packages/h5p-express/package.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index b5c2ee9ae..cc4699160 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8772,13 +8772,14 @@ } }, "node_modules/@types/supertest": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/@types/supertest/-/supertest-2.0.16.tgz", - "integrity": "sha512-6c2ogktZ06tr2ENoZivgm7YnprnhYE4ZoXGMY+oA7IuAf17M8FWvujXZGmxLv8y0PTyts4x5A+erSwVUFA8XSg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@types/supertest/-/supertest-6.0.2.tgz", + "integrity": "sha512-137ypx2lk/wTQbW6An6safu9hXmajAifU/s7szAHLN/FeIm5w7yR0Wkl9fdJMRSHwOn4HLAI0DaB2TOORuhPDg==", "dev": true, "license": "MIT", "dependencies": { - "@types/superagent": "*" + "@types/methods": "^1.1.4", + "@types/superagent": "^8.1.0" } }, "node_modules/@types/supports-color": { @@ -37456,7 +37457,7 @@ "@types/express": "4.17.21", "@types/express-fileupload": "1.5.1", "@types/express-serve-static-core": "5.0.3", - "@types/supertest": "2.0.16", + "@types/supertest": "6.0.2", "axios": "1.7.9", "axios-mock-adapter": "2.1.0", "body-parser": "1.20.3", diff --git a/packages/h5p-express/package.json b/packages/h5p-express/package.json index 992cc2876..adc4aae63 100644 --- a/packages/h5p-express/package.json +++ b/packages/h5p-express/package.json @@ -52,7 +52,7 @@ "@types/express-fileupload": "1.5.1", "@types/express-serve-static-core": "5.0.3", "@types/express": "4.17.21", - "@types/supertest": "2.0.16", + "@types/supertest": "6.0.2", "axios-mock-adapter": "2.1.0", "axios": "1.7.9", "body-parser": "1.20.3", From 09ad13f89458969a3c785a594521cb29c5e29eb0 Mon Sep 17 00:00:00 2001 From: Sebastian Rettig Date: Sun, 12 Jan 2025 17:53:44 +0100 Subject: [PATCH 2/2] test(h5p-express): fix typing issue in supertest --- packages/h5p-express/test/H5PAjaxExpressRouter.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/h5p-express/test/H5PAjaxExpressRouter.test.ts b/packages/h5p-express/test/H5PAjaxExpressRouter.test.ts index 414ae40a5..15e659ffa 100644 --- a/packages/h5p-express/test/H5PAjaxExpressRouter.test.ts +++ b/packages/h5p-express/test/H5PAjaxExpressRouter.test.ts @@ -370,7 +370,7 @@ describe('Express Ajax endpoint adapter', () => { }); describe('tests requiring uploaded files', () => { - let mockApp: supertest.SuperTest; + let mockApp; let uploadResult: any; beforeEach(async () => { mockApp = supertest(app);