MCPcopy
hub / github.com/promptfoo/promptfoo / createTestableWorker

Function createTestableWorker

test/python/worker.test.ts:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39};
40
41function createTestableWorker() {
42 return new PythonWorker(
43 path.join(os.tmpdir(), 'provider.py'),
44 'call_api',
45 ) as unknown as TestablePythonWorker;
46}
47
48describe('PythonWorker stderr parsing', () => {
49 it('honors explicit INFO and DEBUG prefixes before scanning message text', () => {

Callers 1

worker.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…