Add a testing solution (unit, e2e, etc.) #1204
ahkhanjani
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the feature you'd like to request
I could not figure out how to add a testing solution (Vitest is what I choose for unit tests) that works well with this monorepo. Detecting paths on Windows and being able to resolve namespace imports (@acme/package) were some of the problems I encountered. You guys may have more experience doing this.
Describe the solution you'd like to see
I would like to have a testing solution with the monorepo by default, preferably as a package to be easy to opt-out. I tried creating
tooling/testing
package and adding my Vitest configs (Node and React separately) there and extending the rootvitest.workspace.ts
using them.Note that I also tried using Node's built-in testing library which I would definitely prefer over a third party library. Unfortunately even using
glob
package to find paths failed me for some unknown reason. Probably a Windows issue.Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions