mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-14 01:59:05 +03:00
Hoist t.teardown calls to the single-process-tap script
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user