Revalidate includes some test helpers to make testing your validation functions easier. You can import the helpers from revalidate/assertions. All helpers return booleans.
revalidate/assertions
hasError
hasErrorAt
hasErrorOnlyAt