I have a project that was created with create-t3-app@latest. When I attempt to setup component testing with Cypress it throws an error saying invalid environment variables, it's attempting to use the src/env.mjs file.
I've tried to use cypress.env.json and the env variables in cypress.config.ts to override it but the error is persisting. E2E testing does not throw this error just component testing. Any ideas/suggestions or will I have to use a different testing library? thanks