mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-11 14:56:57 +08:00
Revert "Merge pull request #229 from xqliu/test/add-ut-infrastructure"
This reverts commit683e77b92f, reversing changes made to791cecd2ff.
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { ReactElement } from 'react'
|
||||
import { render, RenderOptions } from '@testing-library/react'
|
||||
|
||||
/**
|
||||
* Custom render function that wraps components with common providers
|
||||
*/
|
||||
export function renderWithProviders(
|
||||
ui: ReactElement,
|
||||
options?: Omit<RenderOptions, 'wrapper'>
|
||||
) {
|
||||
return render(ui, { ...options })
|
||||
}
|
||||
|
||||
// Re-export everything from @testing-library/react
|
||||
export * from '@testing-library/react'
|
||||
|
||||
// Override render with our custom version
|
||||
export { renderWithProviders as render }
|
||||
Reference in New Issue
Block a user