mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 02:48:01 +03:00
16 lines
370 B
TypeScript
16 lines
370 B
TypeScript
import "external/mongo/db";
|
|
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"));
|
|
|
|
process.env.NODE_PATH = path.join(__dirname, "../../");
|
|
|
|
for (const file of files) {
|
|
require(file);
|
|
}
|
|
|
|
t.teardown(CloseAllConnections);
|