You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading to Vite 4.0.0 running a TypeScript check will now think that the test config for vitest is invalid. This is the TS error in question:
error TS2345: Argument of type '{ plugins: Plugin_2[]; resolve: { alias: { "@": string; }; }; server: { port: number; }; test: { globals: boolean; environment: string; include: string[]; }; build: { target: string; }; }' is not assignable to parameter of type 'UserConfigExport'.
Object literal may only specify known properties, and 'test' does not exist in type 'UserConfigExport'.
24 test: {
~~~~~~~
25 globals: true,
~~~~~~~~~~~~~~~~~~
...
27 include: ["**/__tests__/*.test.ts"],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28 },
Describe the bug
When upgrading to Vite
4.0.0
running a TypeScript check will now think that thetest
config for vitest is invalid. This is the TS error in question:Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-1gphuh?file=vite.config.ts
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: