mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
* fix logs previewer and msw * refactor api mocking for better dx * update readme * comment out error handler for vitest * rm unnecessary tests * fix custom render nuqs type * add logs search test * rm unnecessary import * update readme with customRender and customRednerHook * rm unnecessary api handler * Move the NODE_ENV to the studio build command in turbo.json. * Update apps/studio/tests/README.md Co-authored-by: Joshen Lim <joshenlimek@gmail.com> * add cursor rule --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
26 lines
702 B
TypeScript
26 lines
702 B
TypeScript
import { screen } from '@testing-library/react'
|
|
import { expect, test } from 'vitest'
|
|
|
|
import LogsQueryPanel from 'components/interfaces/Settings/Logs/LogsQueryPanel'
|
|
import { render } from 'tests/helpers'
|
|
|
|
test('run and clear', async () => {
|
|
render(
|
|
<LogsQueryPanel
|
|
defaultFrom=""
|
|
defaultTo=""
|
|
onDateChange={() => {}}
|
|
onSelectSource={() => {}}
|
|
onSelectTemplate={() => {}}
|
|
warnings={[]}
|
|
warehouseCollections={[]}
|
|
dataSource="logs"
|
|
onDataSourceChange={() => {}}
|
|
templates={[]}
|
|
warehouseTemplates={[]}
|
|
onSelectWarehouseTemplate={() => {}}
|
|
/>
|
|
)
|
|
await expect(screen.findByPlaceholderText(/Search/)).rejects.toThrow()
|
|
})
|