https://github.com/nuxt/test-utils/pull/655 added support for reading .env.test file and also overriding the filename in vitest.config.ts - however, this is not documented at https://nuxt.com/docs/getting-started/testing It would be good to add some documentation about how do get your .env file working in unit tests.