Jake Bailey @jakebailey.dev · Nov 19

Does anyone know what the deal is with vitest v4 trying to run my dist dir? I know the defaults changed, but it does not respect either an exclude of `**/dist/**` or an include to only include TS files Pulling my hair out a bit :(

4 likes 2 replies

?

Replies

Tim Fish · Nov 19

No idea but another way to fix it is to exclude your tests from tsc so they don't end up in your dist!

Jake Bailey · Nov 19

> Vitest does not treat the root vitest.config file as a project unless it is explicitly specified in the configuration. Consequently, the root configuration will only influence global options such as reporters and coverage. Mannnnn how am I supposed to bring back the default exclude dist setting