MCPcopy Create free account
hub / github.com/deepnote/deepnote / setupRunFileFailure

Function setupRunFileFailure

packages/cli/src/commands/run.test.ts:175–180  ·  view source on GitHub ↗
(errorMessage: string)

Source from the content-addressed store, hash-verified

173}
174
175function setupRunFileFailure(errorMessage: string) {
176 mockStart.mockResolvedValue(undefined)
177 mockRunFile.mockRejectedValue(new Error(errorMessage))
178 mockRunProject.mockRejectedValue(new Error(errorMessage))
179 mockStop.mockResolvedValue(undefined)
180}
181
182function getOutput(spy: Mock): string {
183 return spy.mock.calls.map(call => call.join(' ')).join('\n')

Callers 1

run.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected