equicord-companion
Version:
Equicord Companion is a vscode extension to test Equicord patches & webpack finds right from the comfort of your IDE
19 lines (16 loc) • 649 B
JavaScript
// @ts-check
module.exports.mochaGlobalSetup = async function () {
const { resolve, join } = require("path");
/**
* for some reason, there needs to be () around the require to type it
* @type {typeof import("../src/modules/cache")}
*/
const { ModuleDepManager, ModuleCache } = (require("../dist.test/modules/cache"));
await ModuleDepManager.initModDeps({
fromDisk: true,
baseFolder: resolve(__dirname, ".."),
folder: join("assets", "test", "ast", ".modules")
});
ModuleCache.baseFolder = resolve(__dirname, "..");
ModuleCache.folder = join("assets", "test", "ast", ".modules");
}