Skip to content

Conversation

riasvdv
Copy link
Contributor

@riasvdv riasvdv commented May 14, 2024

Fixes #4

Couldn't quite get all the tests to work, seems like a lot of them fail because the message is now added by default, but my added test at least passes.

This uses the on() Livewire method to listen for exceptions in a component and records the errors from the resulting ValidationException

An example from testing this in the Mailcoach codebase:

image

@timacdonald
Copy link
Owner

seems like a lot of them fail because the message is now added by default

Well, that is because I merged the feature without checking that the tests pass 🧠 👈 haha

Thanks for this.

@timacdonald
Copy link
Owner

OMG I'm an idiot. I just forced push and cleared the commits!

I had a local version and have reopened it #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is validation from livewire components recorded?

2 participants