mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
fix: harden windows CI tests and markdown lint
This commit is contained in:
@@ -50,6 +50,15 @@ function setupPluginCache(homeDir, orgName, version) {
|
||||
return cacheDir;
|
||||
}
|
||||
|
||||
function withHomeEnv(homeDir, extraEnv = {}) {
|
||||
return {
|
||||
PATH: process.env.PATH,
|
||||
HOME: homeDir,
|
||||
USERPROFILE: homeDir,
|
||||
...extraEnv,
|
||||
};
|
||||
}
|
||||
|
||||
function runTests() {
|
||||
console.log('\n=== Testing resolve-ecc-root.js ===\n');
|
||||
|
||||
@@ -215,7 +224,7 @@ function runTests() {
|
||||
const result = execFileSync('node', [
|
||||
'-e', `console.log(${INLINE_RESOLVE})`,
|
||||
], {
|
||||
env: { PATH: process.env.PATH, HOME: homeDir },
|
||||
env: withHomeEnv(homeDir),
|
||||
encoding: 'utf8',
|
||||
}).trim();
|
||||
assert.strictEqual(result, expected);
|
||||
@@ -231,7 +240,7 @@ function runTests() {
|
||||
const result = execFileSync('node', [
|
||||
'-e', `console.log(${INLINE_RESOLVE})`,
|
||||
], {
|
||||
env: { PATH: process.env.PATH, HOME: homeDir },
|
||||
env: withHomeEnv(homeDir),
|
||||
encoding: 'utf8',
|
||||
}).trim();
|
||||
assert.strictEqual(result, path.join(homeDir, '.claude'));
|
||||
|
||||
Reference in New Issue
Block a user