
- Comment out mocha imports in various tests to prep for new test strategy - Replace `before` with `beforeEach` and `after` with `afterEach` for consistency - Remove deprecated `commandsBase.test.ts` and `dtm.test.ts` files to reflect focus on new functionality
18 lines
792 B
TypeScript
18 lines
792 B
TypeScript
import { expect } from 'chai';
|
|
// import { describe, it } from 'mocha';
|
|
import '../../src/context/loadContexts';
|
|
import { ChatContextManager } from '../../src/context/contextManager';
|
|
import { gitDiffCachedContext } from '../../src/context/contextGitDiffCached';
|
|
import { gitDiffContext } from '../../src/context/contextGitDiff';
|
|
import { customCommandContext } from '../../src/context/contextCustomCommand';
|
|
|
|
describe('loadContexts', () => {
|
|
it('should register all contexts', () => {
|
|
const chatContextManager = ChatContextManager.getInstance();
|
|
const contextList = chatContextManager.getContextList();
|
|
|
|
expect(contextList).to.include(gitDiffCachedContext);
|
|
expect(contextList).to.include(gitDiffContext);
|
|
expect(contextList).to.include(customCommandContext);
|
|
});
|
|
}); |