Hoist t.teardown calls to the single-process-tap script

This commit is contained in:
zkldi
2021-08-26 03:42:06 +01:00
parent 97cb89793a
commit 8aabc33adf
98 changed files with 4 additions and 193 deletions
@@ -1,5 +1,7 @@
import glob from "glob";
import path from "path";
import t from "tap";
import { CloseAllConnections } from "./close-connections";
const files = glob.sync(path.join(__dirname, "../../", "**/*.test.ts"));
@@ -8,3 +10,5 @@ process.env.NODE_PATH = path.join(__dirname, "../../");
for (const file of files) {
require(file);
}
t.teardown(CloseAllConnections);