refactor: e2e tests (#4536)

This commit is contained in:
Jason Rasmussen 2023-10-18 18:02:42 -04:00 committed by GitHub
parent 31987bc043
commit 4b59f83288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 189 additions and 201 deletions

View file

@ -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);