Files
Oxicloud/tests/e2e/stop-db.js
T
2026-05-08 21:41:28 +02:00

10 lines
337 B
JavaScript

const { execSync } = require('child_process');
const path = require('path');
const COMPOSE_FILE = path.join(__dirname, 'docker-compose.test.yml');
module.exports = async function globalTeardown() {
console.log('[teardown] Stopping test postgres...');
execSync(`docker compose -f ${COMPOSE_FILE} down -v`, { stdio: 'inherit' });
};