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
21 changes: 10 additions & 11 deletions packages/metadata/src/loaders/database-loader.test.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -37,17 +37,16 @@ function createMockDriver(): IDataDriver {
return {
name: 'mock',
version: '1.0.0',
supports: {
transactions: false,
joins: false,
aggregations: false,
streaming: false,
bulkOperations: true,
nestedObjects: false,
fullTextSearch: false,
geoQueries: false,
changeStreams: false,
},
// An empty advertisement is a legal advertisement: every bit in
// `DriverCapabilities` is optional, and this mock needs none of the three
// that survive (#4782). The block used to spell nine — four RETIRED by
// #4634 (`transactions`/`joins`/`streaming`/`fullTextSearch`, now
// tombstoned as `never`) and five that were never keys of
// `DriverCapabilitiesSchema` at all (`aggregations`/`bulkOperations`/
// `nestedObjects`/`geoQueries`/`changeStreams`). Nothing here read any of
// them; their only effect was to be copied into the next mock. Capability
// is METHOD presence, not a boolean — do not re-add bits here.
supports: {},

connect: vi.fn().mockResolvedValue(undefined),
disconnect: vi.fn().mockResolvedValue(undefined),
Expand Down
Loading