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 tests/hooks/hooks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,10 @@ async function runTests() {

if (
await asyncTest('detect-project writes project metadata to the registry and project directory', async () => {
if (process.platform === 'win32') {
console.log(' (skipped — bash script paths are not Windows-compatible)');
return true;
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The skip guard returns true, but asyncTest() ignores the callback’s return value (it only awaits it). For consistency with other skips in this file (which just return;) and to avoid implying the return value is meaningful, consider using return; here as well.

Suggested change
return true;
return;

Copilot uses AI. Check for mistakes.
}
const testRoot = createTestDir();
const homeDir = path.join(testRoot, 'home');
const repoDir = path.join(testRoot, 'repo');
Expand Down
Loading