11 lines
302 B
TypeScript
11 lines
302 B
TypeScript
import path from 'path';
|
|
import fs from 'fs';
|
|
|
|
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.'
|
|
);
|
|
}
|