From 23967fe2f5ae9fb6d6c8a2cbc29845531f7acece Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Wed, 17 Apr 2024 22:26:53 -0700
Subject: Integration test running with test server
---
test/teardown.cjs | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 test/teardown.cjs
(limited to 'test/teardown.cjs')
diff --git a/test/teardown.cjs b/test/teardown.cjs
new file mode 100644
index 0000000..1872061
--- /dev/null
+++ b/test/teardown.cjs
@@ -0,0 +1,5 @@
+console.log('Stopping server.')
+
+module.exports = function teardown() {
+ process.kill(globalThis.__INTEG_TEST_SERVER_PID__);
+};
--
cgit v1.2.3