MCPcopy Index your code
hub / github.com/deepnote/deepnote / setupSuccessfulRun

Function setupSuccessfulRun

packages/cli/src/commands/run.test.ts:155–168  ·  view source on GitHub ↗
(summary: Partial<ExecutionSummary> = {})

Source from the content-addressed store, hash-verified

153} as const
154
155function setupSuccessfulRun(summary: Partial<ExecutionSummary> = {}) {
156 const defaultSummary: ExecutionSummary = {
157 totalBlocks: 1,
158 executedBlocks: 1,
159 failedBlocks: 0,
160 totalDurationMs: 100,
161 ...summary,
162 }
163 mockStart.mockResolvedValue(undefined)
164 mockRunFile.mockResolvedValue(defaultSummary)
165 mockRunProject.mockResolvedValue(defaultSummary)
166 mockStop.mockResolvedValue(undefined)
167 return defaultSummary
168}
169
170function setupStartFailure(errorMessage: string) {
171 mockStart.mockRejectedValue(new Error(errorMessage))

Callers 1

run.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected