-
Notifications
You must be signed in to change notification settings - Fork 25
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 unit tests #13
Comments
Hi Malte, |
I used the following tutorial: I had to add the following packages to the package.json to make the tutorial work: I also needed to add the following comment at the top of the test file:
Jest-dom is described here: You'll find an overview of testing queries here: |
I've created a new fork and added the changes there in the main branch. |
For better unit testing I would recommend to break the quiz.ts file into a module which imports all the classes currently included in the quiz.ts file. Like with java, where every class has it's own file. |
Thanks a lot, Kristian, for your work and suggestions. I will look into it in the upcoming weeks. |
I'm not familiar with unit testing for typescript/ svelte projects but this projects needs some proper testing. I'm thankful for any examples and first implementations!
The text was updated successfully, but these errors were encountered: