fix: make hook compatibility test cross-platform (USERPROFILE for Windows os.homedir)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
e37b823b92
commit
515fb4c5a4
@@ -21,8 +21,10 @@ const home = path.join(temp, 'home');
|
||||
const pluginData = path.join(temp, 'plugin-data');
|
||||
fs.mkdirSync(home, { recursive: true });
|
||||
|
||||
// USERPROFILE alongside HOME: os.homedir() reads USERPROFILE on Windows, HOME on POSIX.
|
||||
const codexEnv = {
|
||||
HOME: home,
|
||||
USERPROFILE: home,
|
||||
PLUGIN_DATA: pluginData,
|
||||
PONYTAIL_DEFAULT_MODE: 'ultra',
|
||||
};
|
||||
@@ -60,6 +62,7 @@ assert.equal(output.systemMessage, 'PONYTAIL:OFF');
|
||||
|
||||
const claudeEnv = {
|
||||
HOME: home,
|
||||
USERPROFILE: home,
|
||||
PONYTAIL_DEFAULT_MODE: 'full',
|
||||
};
|
||||
delete claudeEnv.PLUGIN_DATA;
|
||||
|
||||
Reference in New Issue
Block a user