Files
nat-as-server/e2e/global-setup.js
tom.hempel 06fc134299
Some checks failed
Tests / test (push) Has been cancelled
just testing the environment
2026-05-20 07:10:08 +02:00

17 lines
461 B
JavaScript

import { execSync } from 'child_process';
import path from 'path';
import { fileURLToPath } from 'url';
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
export default async function globalSetup() {
execSync('php tests/bin/seed-test-db.php', {
cwd: root,
stdio: 'inherit',
env: {
...process.env,
QDB_MASTER_KEY: 'dGVzdC1tYXN0ZXIta2V5LXRoaXQtMzJieXRzIQ==',
},
});
}