MCPcopy
hub / github.com/mastra-ai/mastra / expectErrorDetailsMessage

Function expectErrorDetailsMessage

packages/core/src/vector/validation.test.ts:38–40  ·  view source on GitHub ↗
(err: MastraError, pattern: RegExp)

Source from the content-addressed store, hash-verified

36}
37
38function expectErrorDetailsMessage(err: MastraError, pattern: RegExp): void {
39 expect(err.details?.message).toEqual(expect.stringMatching(pattern));
40}
41
42const STORE = 'TEST_STORE';
43

Callers 1

validation.test.tsFile · 0.85

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…