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

Tutorial for backend testing #36

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sindhukrovvidi
Copy link

  • tutorials for testing RESTful APIs and testing backend functions by accessing MongoDB.
  • useful links for testing documents

@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for effervescent-hotteok-7b489d ready!

Name Link
🔨 Latest commit ac57f05
🔍 Latest deploy log https://app.netlify.com/sites/effervescent-hotteok-7b489d/deploys/637e840718486600087823ec
😎 Deploy Preview https://deploy-preview-36--effervescent-hotteok-7b489d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jon-bell
Copy link
Contributor

jon-bell commented Nov 16, 2022

Suggestions:

  • Start with mocks (instead of end with mocks)
  • Describe why mocks can be preferable
  • Use mocks to show how to test client application (by mocking the server)
  • Consider using the "transcript server" as the codebase for the tutorial: we could write some new methods that happen in the client (e.g. calculating average grades), and then test that method using a mock server.
  • Consider adding more discussion of some of the examples in the codebase currently (particularly for jest-mock-extended)

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.

2 participants