Skip to content

Commit e5e8d4b

Browse files
authored
Simplify validationErrors access in tests
1 parent b02c199 commit e5e8d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/types/connection.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +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);
172+
expectError(res3.validationErrors);
173173
expectType<Error[] | undefined>(res3.mongoose?.validationErrors);
174174
}

0 commit comments

Comments
 (0)