fix type errors (again)

This commit is contained in:
Hazelnoot 2025-10-03 13:08:13 -04:00
parent 542b99244a
commit 2bbd5be646
2 changed files with 3 additions and 3 deletions

View file

@ -187,7 +187,7 @@ export async function uploadFile(
path = '../../test/resources/192.jpg',
): Promise<Misskey.entities.DriveFile> {
const filename = path.split('/').pop() ?? 'untitled';
const blob = new Blob([await readFile(join(__dirname, path))] as BlobPart[]);
const blob = new Blob([await readFile(join(__dirname, path)) as Buffer<ArrayBuffer>]);
const body = new FormData();
body.append('i', user.i);

View file

@ -7,8 +7,8 @@ process.env.NODE_ENV = 'test';
import { describe, test, expect } from '@jest/globals';
import { loadConfig } from '@/config.js';
import { getValidator } from '../../../../../test/prelude/get-api-validator.js';
import { paramDef } from './create.js';
import { getValidator } from '../../../../../../test/prelude/get-api-validator.js';
import { paramDef } from '@/server/api/endpoints/notes/create.js';
const config = loadConfig();