Open kentcdodds opened 2 months ago
Added context, I'm trying to move my vitest.config.ts
into the vite.config.ts
so we can share config between tests and the app (seems like a good idea). https://github.com/epicweb-dev/epic-stack/pull/822
This person had a similar issue: https://github.com/remix-run/remix/issues/8367#issuecomment-1875398995 however their solution was to disable the remix plugin during tests which I think is not a good idea since we want our tests to resemble our running application as much as possible.
I've temporarily disabled the remix plugin in vite during testing, but I would definitely prefer to not have to do that.
Reproduction
System Info
Used Package Manager
npm
Expected Behavior
I expect the tests to run without issue
Actual Behavior
I get the following error:
Test files are a special case.
I'm thinking anything out of the app directory should be ignored by this module import check. That would resolve my issue.