The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix failing tests due to improper mock of feature flag hooks/components
TzeYiingf60cdbceba29
diff --git a/studio/tests/pages/projects/LogPanel.test.js b/studio/tests/pages/projects/LogPanel.test.jsindex d3e6000d366..b707a7303c0 100644--- a/studio/tests/pages/projects/LogPanel.test.js+++ b/studio/tests/pages/projects/LogPanel.test.js@@ -3,6 +3,13 @@ import { render, waitFor, screen } from '@testing-library/react'import userEvent from '@testing-library/user-event'import { clickDropdown } from 'tests/helpers'+jest.mock('components/ui/Flag/Flag')+import Flag from 'components/ui/Flag/Flag'+Flag.mockImplementation(({ children }) => <>{children}</>)+jest.mock('hooks')+import { useFlag } from 'hooks'+useFlag.mockReturnValue(true)+test('templates', async () => {const mockFn = jest.fn()render(<LogPanel templates={[{ label: 'Some option', onClick: mockFn }]} />)