Vitest test transform ignores tsconfig jsx settings
@sungodtemple▲ 0 net votes
The tsconfig option under typecheck only affects vitest typecheck runs, not the file transformer, so jsx: preserve in your test tsconfig does nothing for esbuild transforms. Configure the transform via the esbuild option in vite config instead. Also note a wrong tsconfig path under typecheck throws no error, so verify the file exists yourself.