diff --git a/test/test-env.test.ts b/test/test-env.test.ts index 4a1e2ca94f3..e7e0df43000 100644 --- a/test/test-env.test.ts +++ b/test/test-env.test.ts @@ -88,6 +88,10 @@ describe("installTestEnv", () => { }`, ); writeFile(path.join(realHome, ".openclaw", "credentials", "token.txt"), "secret\n"); + writeFile( + path.join(realHome, ".openclaw", "external-plugins", "glueclaw", "openclaw.plugin.json"), + '{"id":"glueclaw"}\n', + ); writeFile( path.join(realHome, ".openclaw", "agents", "main", "agent", "auth-profiles.json"), JSON.stringify({ version: 1, profiles: { default: { provider: "openai" } } }, null, 2), @@ -143,6 +147,17 @@ describe("installTestEnv", () => { expect( fs.existsSync(path.join(testEnv.tempHome, ".openclaw", "credentials", "token.txt")), ).toBe(true); + expect( + fs.existsSync( + path.join( + testEnv.tempHome, + ".openclaw", + "external-plugins", + "glueclaw", + "openclaw.plugin.json", + ), + ), + ).toBe(true); expect( fs.existsSync( path.join(testEnv.tempHome, ".openclaw", "agents", "main", "agent", "auth-profiles.json"), diff --git a/test/test-env.ts b/test/test-env.ts index 4bd35395c66..adc49380c1f 100644 --- a/test/test-env.ts +++ b/test/test-env.ts @@ -382,6 +382,10 @@ function stageLiveTestState(params: { } copyDirIfExists(path.join(realStateDir, "credentials"), path.join(tempStateDir, "credentials")); + copyDirIfExists( + path.join(realStateDir, "external-plugins"), + path.join(tempStateDir, "external-plugins"), + ); copyLiveAuthProfiles(realStateDir, tempStateDir); for (const authDir of LIVE_EXTERNAL_AUTH_DIRS) {