test: make server tests pass on Windows

This commit is contained in:
Marc Kassubeck
2026-05-26 13:04:00 +02:00
parent 0405b384b1
commit 3270619f24
3 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ describe("PiWebPluginService", () => {
files: { "pi-web-plugin.js": "export default { apiVersion: 1, name: 'Dev', activate: () => ({ contributions: {} }) };" },
});
await mkdir(join(tempDir, "plugins"), { recursive: true });
await symlink(pluginDir, join(tempDir, "plugins", "dev"), "dir");
await symlink(pluginDir, join(tempDir, "plugins", "dev"), process.platform === "win32" ? "junction" : "dir");
const service = new PiWebPluginService({ roots: [{ path: join(tempDir, "plugins"), source: "test", scope: "local" }], packageProvider: false });