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

How to unit test the toast? #267

Closed
MarlonAEC opened this issue Jun 5, 2024 · 1 comment
Closed

How to unit test the toast? #267

MarlonAEC opened this issue Jun 5, 2024 · 1 comment

Comments

@MarlonAEC
Copy link

Is it possible to unit-test this library? Like adding a full integration test to verify the toast has been launched or maybe a way to mock the toast to be used inside a Jest unit test? If so, is it possible to add more info about it in the docs

@PdoubleU
Copy link
Collaborator

Hey @MarlonAEC . The fastest way to test toasts in your project is by using *ByText query.

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

No branches or pull requests

2 participants