mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-18 10:14:34 +00:00
fix(auth): preserve bare profile behavior across runtime and sync
This commit is contained in:
1 parent
bc9b04444e
commit
8f8684ce85
14 files changed
+355
-34
No files matched your search
@@ -47,6 +47,22 @@ describe('auth command args parsing', () => {
|
||||
expect(parsed.deeperContinuity).toBe(true);
|
||||
});
|
||||
|
||||
it('parses bare flag for create command', () => {
|
||||
const parsed = parseArgs(['work', '--bare']);
|
||||
|
||||
expect(parsed.profileName).toBe('work');
|
||||
expect(parsed.bare).toBe(true);
|
||||
});
|
||||
|
||||
it('parses bare flag with shared context flags', () => {
|
||||
const parsed = parseArgs(['work', '--bare', '--share-context', '--context-group', 'sprint-a']);
|
||||
|
||||
expect(parsed.profileName).toBe('work');
|
||||
expect(parsed.bare).toBe(true);
|
||||
expect(parsed.shareContext).toBe(true);
|
||||
expect(parsed.contextGroup).toBe('sprint-a');
|
||||
});
|
||||
|
||||
it('tracks unknown flags and keeps positional profile intact', () => {
|
||||
const parsed = parseArgs(['--foo', 'bar', 'work']);
|
||||
|
||||
|
||||
Reference in new issue
Block a user