1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-15 08:05:36 +02:00

attempt to fix test

This commit is contained in:
kakkokari-gtyih
2025-06-13 21:44:53 +09:00
parent 0770ee82eb
commit c306cdbdd9
6 changed files with 22 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
/*
* 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,9 +3,8 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { initTestDb, sendEnvResetRequest } from './utils.js';
import { protectProperties } from 'jest-util';
beforeAll(async () => {
await initTestDb(false);
await sendEnvResetRequest();
});
protectProperties(globalThis.ReadableStreamDefaultReader);
protectProperties(globalThis.ReadableStreamBYOBReader);
protectProperties(globalThis.WritableStreamDefaultWriter);