Skip to content

Commit 365cd8a

Browse files
committed
fix tests
1 parent 0f89d15 commit 365cd8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/gallery/components/CodeBlock.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from 'vitest'
2-
import { render, screen } from '@testing-library/react'
2+
import { render } from '@testing-library/react'
33
import CodeBlock from './CodeBlock'
44

55
describe('CodeBlock', () => {

src/gallery/components/CodeExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReactNode, memo, useMemo } from 'react'
1+
import { type ReactNode, memo, useMemo } from 'react'
22
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'
33
import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism'
44

tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"useDefineForClassFields": true,
66
"lib": ["ES2022", "DOM", "DOM.Iterable"],
77
"module": "ESNext",
8-
"types": ["vite/client"],
8+
"types": ["vite/client", "@testing-library/jest-dom"],
99
"skipLibCheck": true,
1010

1111
/* Bundler mode */

0 commit comments

Comments
 (0)