MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / getCallsMatching

Function getCallsMatching

packages/bumpy/test/helpers-shell-mock.ts:98–103  ·  view source on GitHub ↗
(pattern: string | RegExp)

Source from the content-addressed store, hash-verified

96
97/** Get calls matching a pattern */
98export function getCallsMatching(pattern: string | RegExp): CommandCall[] {
99 return calls.filter((c) => {
100 if (typeof pattern === 'string') return c.command.includes(pattern);
101 return pattern.test(c.command);
102 });
103}
104
105/** Clear recorded calls */
106export function clearCalls() {

Callers 3

ci-comment.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…