Improve docs for testing with Pest #1934
Closed
back2Lobby
started this conversation in
General
Replies: 2 comments 1 reply
-
yep, that works just as long as you remove To have test work for any test file this works: uses(
TestCase::class,
)->in('../Modules/*/Tests/*'); |
Beta Was this translation helpful? Give feedback.
1 reply
-
converted this as an issue to remind myself to action this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was reading the docs for tests pest. It suggests the users to add the
uses(Tests\TestCase::class);
at the top of every single file. But I didn't like it and started digging for better solution. Here is what I found.According to pest docs, you only need to add this in the
tests/Pest.php
:This way we don't need to include the
uses
method in every single file. So, I guess this should be included in the docs, what do you think?Beta Was this translation helpful? Give feedback.
All reactions