import type { ThenStep, ThenStepWithExpectError } from "../../types"; export const hasExpectError = ( step: ThenStep | undefined, ): step is ThenStepWithExpectError => !!step && "expect_error" in step;