The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add failing test
TzeYiingeadf48234f6c
diff --git a/studio/tests/pages/projects/billing/Infrastructure.test.tsx b/studio/tests/pages/projects/billing/Infrastructure.test.tsxnew file mode 100644index 00000000000..1ce86941772--- /dev/null+++ b/studio/tests/pages/projects/billing/Infrastructure.test.tsx@@ -0,0 +1,26 @@+import { get } from 'lib/common/fetch'+import { render } from '../../../helpers'+import { screen } from '@testing-library/react'+import Infrastructure from 'components/interfaces/BillingV2/Usage/Infrastructure'+beforeEach(() => {+ // reset mocks between tests+ ;(get as jest.Mock).mockReset()+ ;(get as jest.Mock).mockImplementation(async (_url: string) => {+ console.log('url', _url)++ return [{ result: [] }]+ })+})++test(`renders category attributes static elements`, async () => {+ render(+ <Infrastructure+ projectRef={'someref'}+ startDate={new Date().toISOString()}+ endDate={new Date().toISOString()}+ currentBillingCycleSelected={false}+ />+ )+ // renders usage categories info+ await screen.findByText('Max CPU usage of your server')+})