fix: resolve medium test asset paths relative to file location (#26683)

This commit is contained in:
Min Idzelis
2026-03-04 08:23:58 -05:00
committed by GitHub
parent 54bc9ddd69
commit 13c4260a1f
4 changed files with 10 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import { Insertable, Kysely } from 'kysely';
import { DateTime } from 'luxon';
import { createHash, randomBytes } from 'node:crypto';
import { Stats } from 'node:fs';
import { resolve } from 'node:path';
import { Writable } from 'node:stream';
import { AssetFace } from 'src/database';
import { AuthDto, LoginResponseDto } from 'src/dtos/auth.dto';
@@ -78,6 +79,9 @@ import { factory, newDate, newEmbedding, newUuid } from 'test/small.factory';
import { automock, wait } from 'test/utils';
import { Mocked } from 'vitest';
// eslint-disable-next-line unicorn/prefer-module
export const testAssetsDir = resolve(__dirname, '../../e2e/test-assets');
interface ClassConstructor<T = any> extends Function {
new (...args: any[]): T;
}