16 lines
341 B
JavaScript
16 lines
341 B
JavaScript
/**
|
|
* Enables database integration tests and runs the test suite.
|
|
* Cross-platform (no cross-env required).
|
|
*/
|
|
const { spawnSync } = require('child_process');
|
|
|
|
process.env.RUN_DB_TESTS = '1';
|
|
|
|
const result = spawnSync('npm', ['run', 'test'], {
|
|
stdio: 'inherit',
|
|
shell: true,
|
|
env: process.env,
|
|
});
|
|
|
|
process.exit(result.status ?? 1);
|