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

Add testing with jest #4

Open
gitdagray opened this issue Dec 22, 2023 · 5 comments
Open

Add testing with jest #4

gitdagray opened this issue Dec 22, 2023 · 5 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@gitdagray
Copy link
Owner

Add jest and write tests.

@gitdagray gitdagray added the help wanted Extra attention is needed label Dec 22, 2023
@Maanu07
Copy link
Contributor

Maanu07 commented Dec 22, 2023

Hey David, sure I will work on this tomorrow.

@leonardogattidev
Copy link

I'd like to suggest using Vitest instead of Jest, in general, it's nicer, faster and lighter, also, it's API is Jest-compatible.
[Why | Comparison | Size: Vitest - Jest]

@Maanu07
Copy link
Contributor

Maanu07 commented Dec 23, 2023

I'd like to suggest using Vitest instead of Jest, in general, it's nicer, faster and lighter, also, it's API is Jest-compatible. [Why | Comparison | Size: Vitest - Jest]

I agree, but I think using Vitest make much sense if you are using vite as your tool, but since our this application is entirely nodejs based and I think there will be not much things to tests, so it won't be a bad idea to use jest instead. Do let me know what you say?

@leonardogattidev
Copy link

leonardogattidev commented Dec 23, 2023

Even outside of projects using Vite, those advantages still stand, and, I'm unaware of any known problems with it (do let me know if there are any).

Still, feel free to use what you're comfortable with, the difference is not that big and may not be worth the trouble, the configuration (file) is different from Jest, so that would be one more thing to learn, also, due to Jest being more battle tested it may be easier to find documentation if things go wrong.

@godwintrav
Copy link

HI @gitdagray Has this been done? I dont mind working on this and adding the test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants