Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Backend testing #133

Open
0916dhkim opened this issue Apr 20, 2023 · 0 comments · May be fixed by #134
Open

Backend testing #133

0916dhkim opened this issue Apr 20, 2023 · 0 comments · May be fixed by #134
Labels
enhancement New feature or request

Comments

@0916dhkim
Copy link
Owner

Add basic testing to backend.

  • Create a handler wrapper so that each handler should be testable without supertest. Instead of res.send, handler should return an object (e.g. { status: 200, body: something }
  • Use vitest (it can be used without vite).
@0916dhkim 0916dhkim added the enhancement New feature or request label Apr 20, 2023
@0916dhkim 0916dhkim linked a pull request Apr 21, 2023 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant