refactor: e2e client (#7324)

This commit is contained in:
Jason Rasmussen
2024-02-21 17:34:11 -05:00
committed by GitHub
parent 5c0c98473d
commit 2ebb57cbd4
13 changed files with 19 additions and 146 deletions
@@ -1,7 +1,7 @@
import { LibraryResponseDto, LibraryService, LoginResponseDto } from '@app/domain';
import { AssetType, LibraryType } from '@app/infra/entities';
import fs from 'fs/promises';
import path from 'path';
import fs from 'node:fs/promises';
import path from 'node:path';
import {
IMMICH_TEST_ASSET_PATH,
IMMICH_TEST_ASSET_TEMP_PATH,
@@ -20,7 +20,8 @@ describe(`Library watcher (e2e)`, () => {
beforeAll(async () => {
process.env.IMMICH_CONFIG_FILE = path.normalize(`${__dirname}/../config/library-watcher-e2e-config.json`);
server = (await testApp.create()).getHttpServer();
const app = await testApp.create();
server = app.getHttpServer();
libraryService = testApp.get(LibraryService);
});