Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/core/test/pg/migration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ describe("migration lifecycle", () => {
expect(done).toContain(first)
expect(done).toContain(second)
expect(done).not.toContain(empty)
expect(failed).toEqual([])
// The test database is shared with every package's tests, whose
// throwaway schemas are created and dropped while this scan runs; one
// dropped mid-scan fails there, so only this test's schemas are asserted.
expect(failed.filter((entry) => [first, second, empty].includes(entry.schema))).toEqual([])
for (const name of [first, second])
expect(yield* db.all(sql.raw(`select id from "${name}".marker`))).toEqual([])
expect(yield* db.all(sql`select 1 from information_schema.tables where table_schema = ${empty}`)).toEqual([])
Expand Down
Loading