mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
refactor: e2e tests (#4536)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { PostgreSqlContainer } from '@testcontainers/postgresql';
|
||||
import * as fs from 'fs';
|
||||
import { access } from 'fs/promises';
|
||||
import path from 'path';
|
||||
|
||||
export default async () => {
|
||||
@@ -23,8 +23,7 @@ export default async () => {
|
||||
}
|
||||
|
||||
const directoryExists = async (dirPath: string) =>
|
||||
await fs.promises
|
||||
.access(dirPath)
|
||||
await access(dirPath)
|
||||
.then(() => true)
|
||||
.catch(() => false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user