feat: Introduce backend test suite with ava

This commit is contained in:
Faruk AYDIN
2023-09-14 11:56:08 +02:00
parent a9c7375534
commit 224965b91e
7 changed files with 398 additions and 183 deletions

View File

@@ -1,6 +1,12 @@
import { URL } from 'node:url';
import * as dotenv from 'dotenv';
dotenv.config();
import path from 'path';
if (process.env.APP_ENV === 'test') {
dotenv.config({ path: path.resolve(__dirname, '../../.env.test') });
} else {
dotenv.config();
}
type AppConfig = {
host: string;