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

Vitest should now work properly #64

Closed
wants to merge 49 commits into from

Conversation

franztobiasfau
Copy link
Contributor

This issue closes #55.

Summary

As far as I understand it, the vitest run command implicitly searches for test files and executes them all if they are in the src/tests/... directory. Due to the design of the mono-repository, it is sufficient to specify the --prefix client/server in our package.json root. Or that is exactly the reason why vitest run is sufficient. Anyway, if we want it more explicit, then we should rather think about configuring the workspace(s) as an option, e.g. if we want specific tests for each environment.

If there are no files, the test will fail, so I've decided to leave the client/.../dummy.test.ts there and will be sure to provide a test file for my widget later :)

How can this be tested?

Go to the root directory cd mini-meco and execute npm run test in the console.

Screenshots

No UI changes were made

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules
  • New and existing unit tests pass locally with my changes: No useState failed
  • I have lowered the linter errors. Before: 23. After: 23

SirJonithan and others added 30 commits January 26, 2025 21:16
…ty far along the way, but reader exists only as a concept for now.
…ctFeatures.ts to keep the old client interface, but use new db scheme under the hood.
… the concept from the actual "model" classes.
…se. Adjusted ObjectHandler to use the Reader where aplicable.
… and written to and from db and entity objects.
JudithWell and others added 19 commits February 8, 2025 15:36
…ded a getUserCount() Method to ObjectHandler.
…ata. Use ProjectManager to interact with user_projects relation!
… membership logic from User and CourseProject, please use the Manager for this!
…ourses and CourseProjects. (this makes Serializable creation easier, because we dont have to touch the factory)
@joluj
Copy link
Contributor

joluj commented Feb 14, 2025

I'm not sure why this PR build up upon #62, so I can't review this PR properly until #62 is merged.

@franztobiasfau
Copy link
Contributor Author

Sorry, my mistake. I continued working on my second task and simply took over the PR. Should I close this one?

@joluj
Copy link
Contributor

joluj commented Feb 14, 2025

Either that or force push, whatever you prefer, I don't mind.

Since you work on #62 you can also just implement it there and close this PR. I assume there are just two lines changed?

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.

Make server and client tests run every test file
4 participants