mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
chore(examples): use modern JSX transform in examples/projects to fix warning (#10716)
Co-authored-by: Hiroshi Ogawa <[email protected]> Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
Hiroshi Ogawa
OpenCode
parent
97c5f3aa6d
commit
43fb413ee4
@@ -1,6 +1,5 @@
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import { userEvent } from '@testing-library/user-event'
|
||||
import React from 'react'
|
||||
import { expect, test } from 'vitest'
|
||||
import Link from '../components/Link.js'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
"lib": ["esnext", "dom"],
|
||||
"module": "node16",
|
||||
"moduleResolution": "node16",
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
setupFiles: './vitest.setup.ts',
|
||||
|
||||
Reference in New Issue
Block a user