Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Improve feedback message for matches() assertion when used with undefined #273

Open
ngarbezza opened this issue Feb 12, 2024 · 0 comments
Labels
✨ dx ✨ improve developer experience enhancement New feature or request

Comments

@ngarbezza
Copy link
Owner

Is your feature request related to a problem? Please describe.

When we end up having an unexpected object in the actual part of the matches assertion, the feedback message is not ideal:

[ERROR] prints initial configuration on start
  => TypeError: Cannot read properties of undefined (reading 'match')

Describe the solution you'd like

A message saying: "Actual object needs to be a regular expression, got undefined".

Describe alternatives you've considered

None

Additional context

N/A

@ngarbezza ngarbezza added the enhancement New feature or request label Feb 12, 2024
@ngarbezza ngarbezza self-assigned this Feb 12, 2024
@ngarbezza ngarbezza removed their assignment Mar 5, 2024
@ngarbezza ngarbezza added the ✨ dx ✨ improve developer experience label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ dx ✨ improve developer experience enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant