mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Attempt to fix studio tests
This commit is contained in:
1 parent
8f61b8543d
commit
c43d354414
2 files changed
+9
-9
No files matched your search
@@ -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: {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user