games_app/backend/scripts/runDbTests.js
2026-06-29 15:01:23 +02:00

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);