mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 23:00:22 +00:00
fix: restore provider auth and build checks
This commit is contained in:
@@ -106,6 +106,30 @@ describe("resolvePluginProviders", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("does not leak host Vitest env into an explicit non-Vitest env", () => {
|
||||
const previousVitest = process.env.VITEST;
|
||||
process.env.VITEST = "1";
|
||||
try {
|
||||
resolvePluginProviders({
|
||||
env: {} as NodeJS.ProcessEnv,
|
||||
bundledProviderVitestCompat: true,
|
||||
});
|
||||
|
||||
expect(loadOpenClawPluginsMock).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
config: undefined,
|
||||
env: {},
|
||||
}),
|
||||
);
|
||||
} finally {
|
||||
if (previousVitest === undefined) {
|
||||
delete process.env.VITEST;
|
||||
} else {
|
||||
process.env.VITEST = previousVitest;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
it("does not reintroduce the retired google auth plugin id into compat allowlists", () => {
|
||||
resolvePluginProviders({
|
||||
config: {
|
||||
|
||||
Reference in New Issue
Block a user