Skip to content

Commit b4dddb1

Browse files
hi-ogawaOpenCode (claude-opus-4-8)
andauthored
chore(examples): use modern JSX transform in examples/projects to fix warning (#10716)
Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: OpenCode (claude-opus-4-8) <noreply@opencode.ai>
1 parent 96c8251 commit b4dddb1

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

examples/projects/packages/client/test/basic.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { render, screen } from '@testing-library/react'
22
import { userEvent } from '@testing-library/user-event'
3-
import React from 'react'
43
import { expect, test } from 'vitest'
54
import Link from '../components/Link.js'
65

examples/projects/packages/client/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "esnext",
4-
"jsx": "react",
4+
"jsx": "react-jsx",
55
"lib": ["esnext", "dom"],
66
"module": "node16",
77
"moduleResolution": "node16",

examples/projects/packages/client/vitest.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import react from '@vitejs/plugin-react'
12
import { defineConfig } from 'vitest/config'
23

34
export default defineConfig({
5+
plugins: [react()],
46
test: {
57
environment: 'jsdom',
68
setupFiles: './vitest.setup.ts',

0 commit comments

Comments
 (0)