mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 11:28:13 +03:00
15 lines
447 B
TypeScript
15 lines
447 B
TypeScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const assert = require("assert");
|
|
const path = require("path");
|
|
const fs = require("fs");
|
|
|
|
assert(process.env.NODE_ENV === "test", "NODE_ENV WAS NOT TEST, BAILING");
|
|
|
|
// empty the logs.
|
|
try {
|
|
fs.rmSync(path.join(__dirname, "../../logs/ktblack-tests-error.log"));
|
|
fs.rmSync(path.join(__dirname, "../../logs/ktblack-tests.log"));
|
|
} catch (err) {
|
|
// no logs to remove, who cares!
|
|
}
|