File tree 4 files changed +4
-2
lines changed
4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 25
25
"pkg" : " run-s clean build:server && pkg --out-path bin .pkg.config.json" ,
26
26
"test" : " run-s db:clean db:run test:run db:clean" ,
27
27
"db:clean" : " cd test/db && docker-compose down" ,
28
- "db:run" : " cd test/db && docker-compose up --detach" ,
28
+ "db:run" : " cd test/db && docker-compose up --detach && sleep 5 " ,
29
29
"test:run" : " jest --runInBand"
30
30
},
31
31
"engines" : {
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ CREATE PUBLICATION ${ident(name)} ${tableClause}
175
175
} else if ( old ! . tables . length === 0 ) {
176
176
tableSql = ''
177
177
} else {
178
+ // @ts -ignore: Suppress TS2589
178
179
tableSql = `ALTER PUBLICATION ${ ident ( old ! . name ) } DROP TABLE ${ old ! . tables
179
180
. map ( ( table ) => `${ ident ( table . schema ) } .${ ident ( table . name ) } ` )
180
181
. join ( ',' ) } ;`
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const init: (config: PoolConfig) => {
26
26
27
27
const { rows } = await pool . query ( sql )
28
28
return { data : rows , error : null }
29
- } catch ( e ) {
29
+ } catch ( e : any ) {
30
30
return { data : null , error : { message : e . message } }
31
31
}
32
32
} ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { pgMeta } from './utils'
2
2
3
3
test ( 'list' , async ( ) => {
4
4
const res = await pgMeta . config . list ( )
5
+ // @ts -ignore: Suppress TS2589
5
6
expect ( res . data ?. find ( ( { name } ) => name === 'autovacuum' ) ) . toMatchInlineSnapshot ( `
6
7
Object {
7
8
"boot_val": "on",
You can’t perform that action at this time.
0 commit comments