Skip to content

Commit

Permalink
fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed May 28, 2024
1 parent c6acd68 commit dc7d652
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@ import { NumericalKeyboard } from '../../../atoms/SoftwareKeyboard'
import { getVolumeRange } from '../utils'
import { VolumeEntry } from '../VolumeEntry'

vi.mock('../../../atoms/InputField')
vi.mock('../../../atoms/SoftwareKeyboard')
vi.mock('../utils')

vi.mock('../../../atoms/InputField', async importOriginal => {
const actualComponents = await importOriginal<typeof InputField>()
return {
...actualComponents,
InputField: vi.fn(),
}
})

const render = (props: React.ComponentProps<typeof VolumeEntry>) => {
return renderWithProviders(<VolumeEntry {...props} />, {
i18nInstance: i18n,
Expand Down

0 comments on commit dc7d652

Please sign in to comment.