Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/apex.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ async function fixture(context) {
// `npm test` and `npx` set this, and it decides how follow-up commands are spelled.
delete env.CI;
delete env.npm_command;
// A gateway key in the developer's shell would change the default gateway, and their own
// XDG_DATA_HOME would point OpenCode's key store at their real one.
for (const provider of Object.values(PROVIDERS)) if (provider !== CALLSTACK) delete env[provider.envVar];
delete env.XDG_DATA_HOME;
return { home, env, journal: join(home, '.apex-state', 'journal.json') };
}

Expand Down
Loading