MCPcopy Create free account
hub / github.com/netlify/cli / asyncErrorBlock

Function asyncErrorBlock

tests/integration/framework-detection.test.ts:291–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289
290 // a failure is expected since this is not a true framework project
291 const asyncErrorBlock = async () => {
292 const childProcess = execa(
293 cliPath,
294 ['dev', '--offline'],
295 getExecaOptions({ cwd: builder.directory, env: { CI: 'false' } }),
296 )
297
298 handleQuestions(childProcess, [
299 {
300 question: 'Multiple possible dev commands found',
301 answer: answerWithValue(DOWN),
302 },
303 ])
304
305 await childProcess
306 }
307 try {
308 await asyncErrorBlock()
309 t.expect.unreachable()

Callers 1

Calls 3

getExecaOptionsFunction · 0.85
handleQuestionsFunction · 0.85
answerWithValueFunction · 0.85

Tested by

no test coverage detected