chore: fix failing tests

This commit is contained in:
TzeYiing authored and Joshen Lim committed 2022-09-21 11:41:07 +08:00
1 parent 2de2a2fb41
commit e7bfba8566
1 file changed
+2 -12
@@ -1,17 +1,7 @@
import LogsQueryPanel from 'components/interfaces/Settings/Logs/LogsQueryPanel'
import { render, screen } from '@testing-library/react'
import { screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
jest.mock('components/ui/Flag/Flag')
import Flag from 'components/ui/Flag/Flag'
Flag.mockImplementation(({ children }) => <>{children}</>)
jest.mock('hooks')
import { useFlag, useStore } from 'hooks'
useFlag.mockReturnValue(true)
useStore.mockImplementation(() => ({
ui: { profile: { id: 1 } },
}))
import { render } from 'tests/helpers'
test.todo('templates')
test('run and clear', async () => {