mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-26 17:20:22 +02:00
19 lines
472 B
TypeScript
19 lines
472 B
TypeScript
"use strict";
|
|
|
|
import fs from "fs";
|
|
|
|
import * as path from "path";
|
|
const home = path.join(__dirname, ".thelounge");
|
|
|
|
import config from "../../src/config";
|
|
config.setHome(home);
|
|
|
|
import STSPolicies from "../../src/plugins/sts"; // Must be imported *after* setHome
|
|
|
|
const mochaGlobalTeardown = function () {
|
|
STSPolicies.refresh.cancel(); // Cancel debounced function, so it does not write later
|
|
fs.unlinkSync(STSPolicies.stsFile);
|
|
};
|
|
|
|
export default mochaGlobalTeardown;
|