Skip to content

Commit 95c246a

Browse files
Enable JSX rendering in homepage regression tests
Use Vite's automatic JSX runtime for Vitest without changing Next.js's preserve setting or adding dependencies. Signed-off-by: Guanzhou Song <guanzhousong@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b2b0079f-68de-4316-8592-64ccfa495ee3
1 parent 4b60822 commit 95c246a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎vitest.config.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'vitest/config';
2+
3+
export default defineConfig({
4+
oxc: {
5+
jsx: {
6+
runtime: 'automatic',
7+
},
8+
},
9+
});

0 commit comments

Comments
 (0)