Skip to content

Commit 8b3a296

Browse files
committed
fix test
1 parent 5a71fb9 commit 8b3a296

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import {describeEachDatabase} from './test-utils'
22

3-
describeEachDatabase({drivers: ['pg', 'pglite'], migrate: false}, (db) => {
4-
test('run migration', async () => {
5-
await db.$migrate()
6-
const res = await db.$exec('select * from connector_config')
7-
expect(res.rows).toEqual([])
8-
})
9-
})
3+
describeEachDatabase(
4+
{drivers: ['pg', 'pglite'], migrate: false, enableExtensions: true},
5+
(db) => {
6+
test('run migration', async () => {
7+
await db.$migrate()
8+
const res = await db.$exec(
9+
'select count(*) as count from connector_config',
10+
)
11+
expect(res.rows[0]).toMatchObject({count: expect.anything()})
12+
})
13+
},
14+
)

0 commit comments

Comments
 (0)