The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Attempt to fix studio tests
Joshen Limc43d35441421
diff --git a/studio/jest.config.js b/studio/jest.config.jsindex cb7f3c95b01..03b07573f70 100644--- a/studio/jest.config.js+++ b/studio/jest.config.js@@ -3,6 +3,7 @@ module.exports = {moduleDirectories: ['<rootDir>', 'node_modules'],setupFiles: ['jest-canvas-mock', './tests/setup/radix'],testEnvironment: 'jsdom',+ testTimeout: 20000,testRegex: '(.*\\.test.(js|jsx|ts|tsx)$)',transform: { '^.+\\.(t|j)sx?$': 'ts-jest' },globals: {diff --git a/studio/stores/pgmeta/SchemaStore.ts b/studio/stores/pgmeta/SchemaStore.tsindex 6bc161ef674..7a0082db225 100644--- a/studio/stores/pgmeta/SchemaStore.ts+++ b/studio/stores/pgmeta/SchemaStore.ts@@ -28,14 +28,13 @@ export default class SchemaStore extends PostgresMetaInterface<PostgresSchema> {}async loadViews(schema: string) {- return [] as any- // const query = `- // select schemaname as schema, viewname as name from pg_catalog.pg_views- // where schemaname = '${schema}'- // order by schemaname, viewname;- // `- // const views = await this.rootStore.meta.query(query)- // this.views = views- // return views+ const query = `+ select schemaname as schema, viewname as name from pg_catalog.pg_views+ where schemaname = '${schema}'+ order by schemaname, viewname;+ `+ const views = await this.rootStore.meta.query(query)+ this.views = views+ return views}}