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

Create the structure for server unit tests (using Mocha or other) #656

Open
DenverCoder1 opened this issue Nov 24, 2022 · 2 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed up-for-grabs Good for beginners, anyone can feel free to contribute

Comments

@DenverCoder1
Copy link
Owner

DenverCoder1 commented Nov 24, 2022

Currently there are no unit tests for the server-side code.

It be useful to be able to test certain things, especially that badges render properly (eg. visiting /badge/-test-blue?logo=issue or similar would return a 200 response code and include the issue icon).

Adding the required file structure and "test-server" command in package.json would be a very helpful start to get it so yarn test or yarn test-server would run mocha or a similar testing library.

If you would like to help with this, it is not necessary to implement all of the necessary tests, but even just one or a few would be fine. The code should be able to import existing modules and test their functionality.

@DenverCoder1 DenverCoder1 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers up-for-grabs Good for beginners, anyone can feel free to contribute labels Nov 24, 2022
@takanome-dev
Copy link

takanome-dev commented Apr 29, 2023

Hey @DenverCoder1, thanks for the awesome work. This project is really cool and helpful.

Didn't look at the code yet 😅 but I want to help with this.
Is there a route that I should prioritize testing?

edit: thinking about using vitest for testing

@DenverCoder1
Copy link
Owner Author

Great, thanks!

I don't know much about the differences in testing frameworks, but feel free to choose 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed up-for-grabs Good for beginners, anyone can feel free to contribute
Projects
None yet
Development

No branches or pull requests

2 participants