v1
- by samhuk 3/25/202300
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const controlFn = () => {
	const shouldError = Math.random() > 0.5
	if (shouldError)
	  throw new Error('An error occured')
	return 123
}


const fn = () => {
	const shouldError = Math.random() > 0.5
	if (shouldError)
	  return [undefined, new Error('An error occured')]
	return [123]
}
delete caserun single casemove downdrag and drop case


ready



let result
let err
try {
	result = fn()
}
catch (e) {
  err = e
}
delete caserun single casemove updrag and drop case


ready



const [result2, err2] = fn()

Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN