test: skip all model-dependent tests in CI
Token-based chunking, vector search, hybrid search, and store LlamaCpp integration tests all require model downloads.
This commit is contained in:
parent
ed4df97122
commit
73985a2aaa
@ -152,7 +152,7 @@ describe("BM25 Search (FTS)", () => {
|
|||||||
// Vector Search Tests - Requires embedding model
|
// Vector Search Tests - Requires embedding model
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
||||||
describe("Vector Search", () => {
|
describe.skipIf(!!process.env.CI)("Vector Search", () => {
|
||||||
let store: ReturnType<typeof createStore>;
|
let store: ReturnType<typeof createStore>;
|
||||||
let db: Database;
|
let db: Database;
|
||||||
let hasEmbeddings = false;
|
let hasEmbeddings = false;
|
||||||
@ -264,7 +264,7 @@ describe("Vector Search", () => {
|
|||||||
// Hybrid Search (RRF) Tests - Combines BM25 + Vector
|
// Hybrid Search (RRF) Tests - Combines BM25 + Vector
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
||||||
describe("Hybrid Search (RRF)", () => {
|
describe.skipIf(!!process.env.CI)("Hybrid Search (RRF)", () => {
|
||||||
let store: ReturnType<typeof createStore>;
|
let store: ReturnType<typeof createStore>;
|
||||||
let db: Database;
|
let db: Database;
|
||||||
let hasVectors = false;
|
let hasVectors = false;
|
||||||
|
|||||||
@ -636,7 +636,7 @@ describe("Document Chunking", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("Token-based Chunking", () => {
|
describe.skipIf(!!process.env.CI)("Token-based Chunking", () => {
|
||||||
test("chunkDocumentByTokens returns single chunk for small documents", async () => {
|
test("chunkDocumentByTokens returns single chunk for small documents", async () => {
|
||||||
const content = "This is a small document.";
|
const content = "This is a small document.";
|
||||||
const chunks = await chunkDocumentByTokens(content, 900, 135);
|
const chunks = await chunkDocumentByTokens(content, 900, 135);
|
||||||
@ -2245,7 +2245,7 @@ describe("Integration", () => {
|
|||||||
// LlamaCpp Integration Tests (using real local models)
|
// LlamaCpp Integration Tests (using real local models)
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
||||||
describe("LlamaCpp Integration", () => {
|
describe.skipIf(!!process.env.CI)("LlamaCpp Integration", () => {
|
||||||
test("searchVec returns empty when no vector index", async () => {
|
test("searchVec returns empty when no vector index", async () => {
|
||||||
const store = await createTestStore();
|
const store = await createTestStore();
|
||||||
const collectionName = await createTestCollection();
|
const collectionName = await createTestCollection();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user