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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ describe('AnnouncementService', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('read', () => {
|
||||
describe.todo('read', () => {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
|
||||
@@ -70,6 +70,8 @@ describe('FetchInstanceMetadataService', () => {
|
||||
|
||||
afterEach(async () => {
|
||||
await app.close();
|
||||
vi.resetAllMocks();
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
test('Lock and update', async () => {
|
||||
|
||||
Reference in New Issue
Block a user