Compare commits

..

No commits in common. "c306cdbdd93eba487b3434a88f1c8d771e1b8180" and "7f425ddc7724781e6d1094b790ff1b0afa246747" have entirely different histories.

6 changed files with 7 additions and 21 deletions

View File

@ -136,7 +136,7 @@ module.exports = {
// runner: "jest-runner",
// 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
// setupFilesAfterEnv: [],

View File

@ -8,7 +8,7 @@ const base = require('./jest.config.cjs')
module.exports = {
...base,
globalSetup: "<rootDir>/built-test/entry.js",
setupFilesAfterEnv: ["<rootDir>/test/jest.setup.e2e.ts"],
setupFilesAfterEnv: ["<rootDir>/test/jest.setup.ts"],
testMatch: [
"<rootDir>/test/e2e/**/*.ts",
],

View File

@ -236,7 +236,6 @@
"fkill": "9.0.0",
"jest": "30.0.0",
"jest-mock": "30.0.0",
"jest-util": "30.0.0",
"nodemon": "3.1.10",
"pid-port": "1.0.2",
"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,9 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { protectProperties } from 'jest-util';
import { initTestDb, sendEnvResetRequest } from './utils.js';
protectProperties(globalThis.ReadableStreamDefaultReader);
protectProperties(globalThis.ReadableStreamBYOBReader);
protectProperties(globalThis.WritableStreamDefaultWriter);
beforeAll(async () => {
await initTestDb(false);
await sendEnvResetRequest();
});

View File

@ -589,9 +589,6 @@ importers:
jest-mock:
specifier: 30.0.0
version: 30.0.0
jest-util:
specifier: 30.0.0
version: 30.0.0
nodemon:
specifier: 3.1.10
version: 3.1.10