test: add unit tests for base components (#32818)

Co-authored-by: CodingOnStar <hanxujiang@dify.com>
This commit is contained in:
Coding On Star
2026-03-02 11:40:43 +08:00
committed by GitHub
parent 8cc775d9f2
commit 335b500aea
401 changed files with 820 additions and 819 deletions

View File

@ -1,5 +1,5 @@
import { fireEvent, render, screen } from '@testing-library/react'
import AddButton from './add-button'
import AddButton from '../add-button'
describe('AddButton', () => {
describe('Rendering', () => {

View File

@ -1,6 +1,6 @@
import { cleanup, fireEvent, render } from '@testing-library/react'
import * as React from 'react'
import Button from './index'
import Button from '../index'
afterEach(cleanup)
// https://testing-library.com/docs/queries/about

View File

@ -1,5 +1,5 @@
import { fireEvent, render, screen } from '@testing-library/react'
import SyncButton from './sync-button'
import SyncButton from '../sync-button'
describe('SyncButton', () => {
describe('Rendering', () => {