config: warn on unknown toolSets typo instead of dropping silently
unknownToolSetNames() + startup notice (stderr headless, NoticeBus interactive) flags gti vs git typos at boot, not as that set off.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { expect, test } from 'bun:test';
|
||||
import { unknownToolSetNames } from '../src/config';
|
||||
|
||||
test('unknownToolSetNames flags typos and ignores valid ones', () => {
|
||||
expect(unknownToolSetNames(['edit-plus', 'gti', 'net', 'extra'])).toEqual(['gti']);
|
||||
expect(unknownToolSetNames(['core', 'git'])).toEqual([]);
|
||||
expect(unknownToolSetNames(undefined)).toEqual([]);
|
||||
expect(unknownToolSetNames([])).toEqual([]);
|
||||
expect(unknownToolSetNames(null)).toEqual([]);
|
||||
});
|
||||
Reference in New Issue
Block a user