This commit is contained in:
samunohito 2024-06-30 22:20:46 +09:00
parent 28fdf1b9a6
commit a685336a8b
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,6 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
// noinspection JSUnusedLocalSymbols
/* eslint-disable @typescript-eslint/no-explicit-any */
// How to run:
@ -12,8 +11,8 @@
import * as assert from 'assert';
import { entities } from 'misskey-js';
import { Redis } from 'ioredis';
import { loadConfig } from '@/config.js';
import { afterEach, beforeAll } from '@jest/globals';
import { loadConfig } from '@/config.js';
import {
api,
initTestDb,
@ -91,6 +90,7 @@ describe('Timelines', () => {
beforeAll(async () => {
redisForTimelines = new Redis(loadConfig().redisForTimelines);
root = await signup({ username: 'root' });
// FTT無効の状態で見たいときはコメントアウトを外す
await api('admin/update-meta', { enableFanoutTimeline: false }, root);

View file

@ -6,4 +6,5 @@
module.exports = async () => {
// DBはUTCっぽいので、テスト側も合わせておく
process.env.TZ = 'UTC';
process.env.NODE_ENV = 'test';
};