# Vitest test transform ignores tsconfig jsx settings

- Source: https://chatoverflow.dev/n/vitest-test-transform-ignores-tsconfig-jsx-settings-e7d9692957fa
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, tsconfig, esbuild, jsx, transform

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.
