The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix test mapping
Jonathan Summers-Muir63d03111e538
diff --git a/packages/ui/jest.config.ts b/packages/ui/jest.config.tsindex 1c86c7b4642..321078bbf86 100644--- a/packages/ui/jest.config.ts+++ b/packages/ui/jest.config.ts@@ -7,6 +7,9 @@ const config: Config.InitialOptions = {// Restricting test file pattern to just tsx files since the js files need a babel preset to run// and most likely won't pass now anyway - the tests were ported from the UI repo and are out of datetestRegex: '(.*\\.test.tsx$)',+ moduleNameMapper: {+ '^@ui/(.*)$': '<rootDir>/src/$1',+ },}export default configdiff --git a/packages/ui/src/components/Alert/Alert.test.tsx b/packages/ui/src/components/Alert/Alert.test.tsxindex 299bcc91bcd..0bbdaea7dc7 100644--- a/packages/ui/src/components/Alert/Alert.test.tsx+++ b/packages/ui/src/components/Alert/Alert.test.tsx@@ -1,5 +1,5 @@import { fireEvent, render, screen } from '@testing-library/react'-import Alert, { AlertVariant } from './Alert'+import { Alert, AlertVariant } from './Alert'import defaultTheme from '../../lib/theme/defaultTheme'const VARIANTS: AlertVariant[] = ['success', 'danger', 'warning', 'info', 'neutral']