is it possible to load a different tsconfig
for Vitest? I could do it with ts-jest
#1291
Unanswered
ghiscoding
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So as the tittle suggest, the question is to ask if it's possible to load a different
tsconfig
file? Like atsconfig.spec.json
where I could add the paths of my spec files. The problem that I currently have is that I only have 1 tsconfig file for both my Vue+Vite / Vitest project and I don't want, neither need, to transpile the unit test spec files.I know that most boilerplate, like Vitesse for example, would have all their unit tests in a separate
\test
folder in the root but I don't like this structure, I prefer to have my unit tests close to the components/services in a__tests__
which I could do easily in JestIn Jest I was able to do load a different tsconfig via
ts-jest
with this config,is that possible in Vitest? I couldn't find anything in the docs neither in any issues//discussions.
I want to have 2 tsconfig, where the base one would be similar to this
and a separate one for Vitest that would look like this
How can I do this in Vitest? I want to keep current structure of
__tests__
close to their source...Beta Was this translation helpful? Give feedback.
All reactions