redirect test paths

This commit is contained in:
huchenlei
2024-06-13 14:39:00 -04:00
parent ee0b054cde
commit e0850bb82c
6 changed files with 26 additions and 26 deletions

View File

@@ -18,14 +18,14 @@ function forEachKey(cb) {
}
export function setup(ctx) {
const lg = fs.readFileSync(path.resolve("../web/lib/litegraph.core.js"), "utf-8");
const lg = fs.readFileSync(path.resolve("../dist/lib/litegraph.core.js"), "utf-8");
const globalTemp = {};
(function (console) {
eval(lg);
}).call(globalTemp, nop);
forEachKey((k) => (ctx[k] = globalTemp[k]));
require(path.resolve("../web/lib/litegraph.extensions.js"));
require(path.resolve("../dist/lib/litegraph.extensions.js"));
}
export function teardown(ctx) {