-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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] Unit Testing #27754
Comments
This is already possible. You can use @playwright/test as of today for unit testing only. We use it e.g. here or here in such a kind of setup. The golden rule is there then to just not use the |
Closing per the response above, feel free to open a new issue if it doesn't work. |
Thank you for the detailed answer, @mxschmitt. I'd suggest adding a new page "unit testing" to make it easy and clear to find for use-cases were only function tests are needed when using Playwright. PS: ui mode is great, yet I wouldn't mind if watch mode were also available just as a cli. |
@MentalGear please feel free to send us a PR that updates the documentation! |
I have read about experimental component testing, but it would be great if we could use playwright also as a unit testing framework for singular functions, so no jest or vitest ist needed alongside. Is this currently already possible ?
The text was updated successfully, but these errors were encountered: