summary refs log tree commit diff
path: root/scripts/test.js
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-07 11:59:48 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-07 11:59:48 +1000
commit24ec642d495198749f9c3da37ecf42b42d869ff6 (patch)
tree9e14c9a30522cb961814f02e92d4c3e29832d3f7 /scripts/test.js
parentMerge pull request #1085 from spacebarchat/feat/dependency-updates (diff)
downloadserver-24ec642d495198749f9c3da37ecf42b42d869ff6.tar.xz
* add TOKEN and ITER env vars to identify test script
* kill child process server when tests are done, not just parent
Diffstat (limited to 'scripts/test.js')
-rw-r--r--scripts/test.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/test.js b/scripts/test.js

index 28ac3778..69e9fdd6 100644 --- a/scripts/test.js +++ b/scripts/test.js
@@ -34,6 +34,7 @@ server.stdout.on("data", (data) => { if (data.toString().toLowerCase().includes("listening")) { // we good :) console.log("we good"); + server.kill(); process.exit(); } });