mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-18 14:13:21 +00:00
fix(cursor): resolve PR review findings
This commit is contained in:
1 parent
e1049e38d4
commit
cf5df0630a
12 files changed
+256
-29
No files matched your search
@@ -85,6 +85,20 @@ describe('npm CLI', () => {
|
||||
assert(!output.includes("Profile '--verbose' not found"), 'Should not treat flags as profiles');
|
||||
}
|
||||
});
|
||||
|
||||
it('routes cursor probe through the cursor command handler', function() {
|
||||
try {
|
||||
execSync(`bun "${srcCcsPath}" cursor probe`, {
|
||||
stdio: 'pipe',
|
||||
timeout: 3000,
|
||||
env: { ...process.env, CCS_HOME: testCcsHome }
|
||||
});
|
||||
} catch (e) {
|
||||
const output = e.stderr?.toString() || e.stdout?.toString() || '';
|
||||
assert(!output.includes("Profile 'cursor' not found"), 'Should not fall through to profile lookup');
|
||||
assert(output.includes('Cursor Live Probe'), 'Should render the cursor probe command output');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('Profile handling', () => {
|
||||
|
||||
Reference in new issue
Block a user