Skip to content

Commit 16d588d

Browse files
author
Amrit kumar Mahto
committed
fix(tsd): assert validationErrors type error in bulkWrite #15768
1 parent b869166 commit 16d588d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/types/connection.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,6 @@ async function gh15359() {
169169
{ model: 'Test', name: 'updateOne', filter: { name: 'test4' }, update: { $set: { num: 'not a number' } } }
170170
], { ordered: false });
171171
expectType<number>(res3.insertedCount);
172+
expectError((res3 as typeof res3 & { validationErrors?: unknown }).validationErrors);
172173
expectType<Error[] | undefined>(res3.mongoose?.validationErrors);
173174
}

0 commit comments

Comments
 (0)