Skip to content

Commit afd4080

Browse files
authored
add listener (#670)
1 parent 43f859a commit afd4080

File tree

1 file changed

+5
-0
lines changed
  • packages/addons/_tests/drizzle

1 file changed

+5
-0
lines changed

packages/addons/_tests/drizzle/test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ vitest.beforeAll(() => {
1919
const cwd = path.dirname(fileURLToPath(import.meta.url));
2020
execSync('docker compose up --detach', { cwd, stdio: 'pipe' });
2121

22+
// cleans up the containers on interrupts (ctrl+c)
23+
process.addListener('SIGINT', () => {
24+
execSync('docker compose down --volumes', { cwd, stdio: 'pipe' });
25+
});
26+
2227
return () => {
2328
execSync('docker compose down --volumes', { cwd, stdio: 'pipe' });
2429
};

0 commit comments

Comments
 (0)