mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 10:58:07 +03:00
18 lines
461 B
TypeScript
18 lines
461 B
TypeScript
import "external/mongo/db";
|
|
import { CleanUpAfterTests } from "./cleanup";
|
|
import glob from "glob";
|
|
import t from "tap";
|
|
import path from "path";
|
|
|
|
const files = glob.sync(path.join(__dirname, "../", "**/*.test.ts"));
|
|
|
|
process.env.NODE_PATH = path.join(__dirname, "../");
|
|
|
|
for (const file of files) {
|
|
// Deliberate -- we're doing hackery here.
|
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
require(file);
|
|
}
|
|
|
|
t.teardown(CleanUpAfterTests);
|