feat(auth): add shared resource controls

This commit is contained in:
Tam Nhu Tran committed 2026-05-08 11:15:28 -04:00
1 parent 2d382d5474
commit 64e1d1f815
32 files changed
+1068 -43

No files matched your search

+14
View File
@@ -63,6 +63,20 @@ describe('auth command args parsing', () => {
expect(parsed.contextGroup).toBe('sprint-a');
});
it('parses shared resource mode value for resources command', () => {
const parsed = parseArgs(['work', '--mode', 'profile-local']);
expect(parsed.profileName).toBe('work');
expect(parsed.mode).toBe('profile-local');
});
it('parses inline shared resource mode value', () => {
const parsed = parseArgs(['work', '--mode=shared']);
expect(parsed.profileName).toBe('work');
expect(parsed.mode).toBe('shared');
});
it('tracks unknown flags and keeps positional profile intact', () => {
const parsed = parseArgs(['--foo', 'bar', 'work']);