Some checks are pending
Automatisch Backend Tests / test (push) Waiting to run
Automatisch CI / linter (push) Waiting to run
Automatisch CI / start-backend-server (push) Waiting to run
Automatisch CI / start-backend-worker (push) Waiting to run
Automatisch CI / build-web (push) Waiting to run
Automatisch UI Tests / test (push) Waiting to run
13 lines
403 B
JavaScript
13 lines
403 B
JavaScript
import path from 'path';
|
|
import fs from 'fs';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
const testEnvFile = path.resolve(__dirname, '../../.env.test');
|
|
|
|
if (!fs.existsSync(testEnvFile)) {
|
|
throw new Error(
|
|
'Test environment file (.env.test) not found! You can copy .env-example.test to .env.test and fill it with your own values.'
|
|
);
|
|
}
|