fix(FN-3737): skip PluginLoader test when dist/index.js is absent
Agent-Logs-Url: https://github.com/Runfusion/Fusion/sessions/988126eb-7e51-4b15-8d47-2ce0ce1aed99 Co-authored-by: gsxdsm <602584+gsxdsm@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
73cf69d1bc
commit
56903d7b9c
@@ -60,7 +60,9 @@ describe("dependency graph plugin index", () => {
|
||||
expect(result.status, `Node import check failed: ${result.stderr || result.stdout}`).toBe(0);
|
||||
});
|
||||
|
||||
it("is loadable by PluginLoader without throwing", async () => {
|
||||
const hasPluginLoaderPrereqs = existsSync(join(process.cwd(), "dist/index.js"));
|
||||
const pluginLoaderTest = hasPluginLoaderPrereqs ? it : it.skip;
|
||||
pluginLoaderTest("is loadable by PluginLoader without throwing", async () => {
|
||||
const rootDir = mkdtempSync(join(tmpdir(), "fn-3737-plugin-loader-"));
|
||||
testDirs.push(rootDir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user