This commit is contained in:
16
e2e/global-setup.js
Normal file
16
e2e/global-setup.js
Normal file
@ -0,0 +1,16 @@
|
||||
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==',
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user