1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-30 07:54:36 +02:00

attempt to fix unit tests

This commit is contained in:
kakkokari-gtyih
2025-12-04 10:23:44 +09:00
parent 53efffbf61
commit 36b6e9cd1a
3 changed files with 5 additions and 1 deletions

View File

@@ -2,9 +2,11 @@
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { EventEmitter } from 'node:events';
export default function setup() {
// DBはUTCっぽいので、テスト側も合わせておく
process.env.TZ = 'UTC';
process.env.NODE_ENV = 'test';
EventEmitter.defaultMaxListeners = 20;
}

View File

@@ -199,7 +199,7 @@ describe('AnnouncementService', () => {
});
});
describe('read', () => {
describe.todo('read', () => {
// TODO
});
});

View File

@@ -70,6 +70,8 @@ describe('FetchInstanceMetadataService', () => {
afterEach(async () => {
await app.close();
vi.resetAllMocks();
vi.clearAllMocks();
});
test('Lock and update', async () => {