Attempt to fix studio tests

This commit is contained in:
Joshen Lim committed 2022-12-12 11:03:17 +07:00
1 parent 8f61b8543d
commit c43d354414
2 files changed
+9 -9

No files matched your search

+1
View File
@@ -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: {
+8 -9
View File
@@ -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
}
}