revert jest 30 related changes

This commit is contained in:
kakkokari-gtyih 2025-10-08 10:23:21 +09:00
parent 37207f6e1d
commit 789bdd255f
5 changed files with 466 additions and 837 deletions

View File

@ -136,7 +136,7 @@ module.exports = {
// runner: "jest-runner", // runner: "jest-runner",
// The paths to modules that run some code to configure or set up the testing environment before each test // The paths to modules that run some code to configure or set up the testing environment before each test
setupFiles: ["<rootDir>/test/jest.setup.ts"], // setupFiles: [],
// A list of paths to modules that run some code to configure or set up the testing framework before each test // A list of paths to modules that run some code to configure or set up the testing framework before each test
// setupFilesAfterEnv: [], // setupFilesAfterEnv: [],

View File

@ -188,7 +188,7 @@
"xev": "3.0.2" "xev": "3.0.2"
}, },
"devDependencies": { "devDependencies": {
"@jest/globals": "30.0.0", "@jest/globals": "29.7.0",
"@nestjs/platform-express": "11.1.3", "@nestjs/platform-express": "11.1.3",
"@sentry/vue": "9.46.0", "@sentry/vue": "9.46.0",
"@simplewebauthn/types": "12.0.0", "@simplewebauthn/types": "12.0.0",
@ -236,9 +236,9 @@
"eslint-plugin-import": "2.32.0", "eslint-plugin-import": "2.32.0",
"execa": "9.6.0", "execa": "9.6.0",
"fkill": "9.0.0", "fkill": "9.0.0",
"jest": "30.0.0", "jest": "29.7.0",
"jest-mock": "30.0.0", "jest-mock": "29.7.0",
"jest-util": "30.0.0", "jest-util": "29.7.0",
"nodemon": "3.1.10", "nodemon": "3.1.10",
"pid-port": "1.0.2", "pid-port": "1.0.2",
"simple-oauth2": "5.1.0", "simple-oauth2": "5.1.0",

View File

@ -1,11 +0,0 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { initTestDb, sendEnvResetRequest } from './utils.js';
beforeAll(async () => {
await initTestDb(false);
await sendEnvResetRequest();
});

View File

@ -3,8 +3,10 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import { protectProperties } from 'jest-util'; import { initTestDb, sendEnvResetRequest } from './utils.js';
beforeAll(async () => {
await initTestDb(false);
await sendEnvResetRequest();
});
protectProperties(ReadableStreamDefaultReader);
protectProperties(ReadableStreamBYOBReader);
protectProperties(WritableStreamDefaultWriter);

File diff suppressed because it is too large Load Diff