Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Increase timeout for jest test

Joshen Limc5bb55dac6f1
diff --git a/studio/tests/pages/projects/LogsPreviewer.test.js b/studio/tests/pages/projects/LogsPreviewer.test.js
index d6a6147ec6a..092a451d715 100644
--- a/studio/tests/pages/projects/LogsPreviewer.test.js
+++ b/studio/tests/pages/projects/LogsPreviewer.test.js
@@ -362,6 +362,7 @@ test('bug: nav to explorer preserves newlines', async () => {
await expect(router.push).toBeCalledWith(expect.stringContaining(encodeURIComponent('\n')))
})
test('filters alter generated query', async () => {
+ jest.setTimeout(10000)
render(<LogsPreviewer projectRef="123" tableName={LogsTableName.EDGE} />)
userEvent.click(await screen.findByRole('button', { name: 'Status' }))
userEvent.click(await screen.findByText(/500 error codes/))
@@ -391,10 +392,11 @@ test('filters alter generated query', async () => {
await waitFor(() => {
// counts are adjusted
- expect(get).not.toHaveBeenCalledWith(expect.stringMatching(/count.+\*.+as.count.+where.+500.+599/))
+ expect(get).not.toHaveBeenCalledWith(
+ expect.stringMatching(/count.+\*.+as.count.+where.+500.+599/)
+ )
expect(get).toHaveBeenCalledWith(expect.stringMatching(/count.+\*.+as.count.+where.+400.+499/))
-
expect(get).not.toHaveBeenCalledWith(expect.stringContaining('500'))
expect(get).not.toHaveBeenCalledWith(expect.stringContaining('599'))
expect(get).not.toHaveBeenCalledWith(expect.stringContaining('200'))