@@ -174,7 +174,7 @@ test("installs an importable native plugin under XDG without changing user confi
|
||||
process.execPath,
|
||||
"-e",
|
||||
"const { default: plugin } = await import(process.argv[1]); console.log(JSON.stringify([plugin.id, plugin.setup()]));",
|
||||
join(config, "plugins", "stanp-opencode"),
|
||||
join(config, "plugins", "stanp-opencode.js"),
|
||||
],
|
||||
directory,
|
||||
env,
|
||||
@@ -184,6 +184,7 @@ test("installs an importable native plugin under XDG without changing user confi
|
||||
stdout: '["stanp-opencode","native-ready"]\n',
|
||||
});
|
||||
expect(await readFile(join(config, "opencode.jsonc"), "utf8")).toBe(configContents);
|
||||
expect(await Bun.file(join(config, "plugins", "stanp-opencode")).exists()).toBe(false);
|
||||
expect(
|
||||
await readFile(join(config, "stanp-opencode", "install.previous", "index.js"), "utf8"),
|
||||
).toBe(previousPlugin);
|
||||
|
||||
Reference in New Issue
Block a user