-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Add mocking guide #7092
Add mocking guide #7092
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
55ae91c
to
f54568d
Compare
f54568d
to
1914be0
Compare
On first reading, it seems like a good direction to me. But I think adding a paragraph explaining the concept of ‘mock’ would be useful, as the learn section is supposed to be more explanatory than the API docs, which are very technical. I also noticed that there is no link to the mock docs API, which could be very useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regardless of whether the rest of the nitpicks are added, it reads well, so LGTM.
The other members of @nodejs/test_runner might wanna take a look tho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! Thanks to improve learn section
Thanks @aduh95 @AugustinMauroy @RedYetiDev ! I think it's ready to go, baring any requests from others on the test runner team. I'll wait a day to give them a chance to chime in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Lighthouse Results
|
Co-authored-by: Augustin Mauroy <[email protected]> Co-authored-by: Aviv Keller <[email protected]> Signed-off-by: Jacob Smith <[email protected]>
Co-authored-by: Aviv Keller <[email protected]> Signed-off-by: Jacob Smith <[email protected]>
…ith `bar`) Co-authored-by: Antoine du Hamel <[email protected]> Signed-off-by: Jacob Smith <[email protected]>
19c0157
to
0c26f6d
Compare
pushed a rebase |
Description
Add a guide for when, why, and how to mock in tests via node built-ins
Validation
Read the article :)
Related Issues
None
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.