test(ui): fix warnings (#4187)
* fix(ui): address test warnings * ignore lint error in test Signed-off-by: Deluan <deluan@navidrome.org> --------- Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -12,11 +12,12 @@ vi.mock('@material-ui/core', async () => {
|
||||
})
|
||||
|
||||
vi.mock('react-router-dom', () => ({
|
||||
Link: ({ to, children, ...props }) => (
|
||||
<a href={to} {...props}>
|
||||
// eslint-disable-next-line react/display-name
|
||||
Link: React.forwardRef(({ to, children, ...props }, ref) => (
|
||||
<a href={to} ref={ref} {...props}>
|
||||
{children}
|
||||
</a>
|
||||
),
|
||||
)),
|
||||
}))
|
||||
|
||||
vi.mock('react-dnd', () => ({
|
||||
|
||||
Reference in New Issue
Block a user