Skip to content

Commit

Permalink
patch(vest): Use a more informative test exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Feb 2, 2022
1 parent c100a5c commit e1c18e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vest/src/core/test/lib/registerTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export default function registerTest(testObject: VestTest): void {
}
} catch (e) {
throwError(
`Your test function ${testObject.fieldName} returned a value. Only "false" or Promise returns are supported.`
`Unexpected error encountered during test registration.
Test Object: ${testObject}.
Error: ${e}.`
);
}
}

1 comment on commit e1c18e5

@vercel
Copy link

@vercel vercel bot commented on e1c18e5 Feb 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest-next – ./website

vest-website.vercel.app
vest-next-git-latest-ealush.vercel.app
vest-next.vercel.app
vest-next-ealush.vercel.app

Please sign in to comment.