GitNexus/gitnexus/test/unit/embedder.test.ts
abhigyanpatwari 8a100a76d3 test: add test suite with vitest (unit + integration + fixtures)
- 59 test files covering unit and integration tests
- vitest config with coverage thresholds and fork pooling
- Test fixtures (mini-repo + multi-language sample code)
- Add vitest + coverage-v8 to devDependencies
- Add test scripts (test, test:integration, test:all, test:watch, test:coverage)
- Move typescript to devDependencies where it belongs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 20:07:02 +05:30

16 lines
461 B
TypeScript

import { describe, it, expect } from 'vitest';
import { getEmbeddingDims, isEmbedderReady } from '../../src/mcp/core/embedder.js';
describe('embedder', () => {
describe('getEmbeddingDims', () => {
it('returns 384 (MiniLM default)', () => {
expect(getEmbeddingDims()).toBe(384);
});
});
describe('isEmbedderReady', () => {
it('returns false before initialization', () => {
expect(isEmbedderReady()).toBe(false);
});
});
});