MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / thread-service.test.ts

File thread-service.test.ts

server/tests/unit/thread-service.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect, beforeAll, afterAll, beforeEach, afterEach, vi } from 'vitest';
2import { getPool, initializeDatabase, closeDatabase } from '../../src/db/client.js';
3import { runMigrations } from '../../src/db/migrate.js';
4import type { Pool } from 'pg';

Callers

nothing calls this directly

Calls 15

initializeDatabaseFunction · 0.85
runMigrationsFunction · 0.85
closeDatabaseFunction · 0.85
itFunction · 0.85
queryMethod · 0.80
getOrCreateThreadMethod · 0.80
getThreadMessagesMethod · 0.80
addMessageFeedbackMethod · 0.80
reviewThreadMethod · 0.80
getThreadMethod · 0.80
flagThreadMethod · 0.80
unflagThreadMethod · 0.80

Tested by

no test coverage detected