DeepCodeGeniusWeb-vscode/test/context/loadContexts.test.ts
bobo.yang b2bd118e33 feat: Update tests and remove deprecated tests for Claude3 integration
- 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
2024-03-10 16:36:28 +08:00

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);
});
});