Skip to content

Commit 3d6db1c

Browse files
committed
fix build
1 parent 231cdca commit 3d6db1c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/functional/null-undefined-handling/find-options.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ describe("find options > null and undefined handling", () => {
6262
await connection
6363
.createQueryBuilder(Post, "post")
6464
.setFindOptions({
65+
// @ts-expect-error - null should be marked as unsafe by default
6566
where: {
6667
title: "Post #1",
6768
text: null,
@@ -79,6 +80,7 @@ describe("find options > null and undefined handling", () => {
7980
// Test with Repository find
8081
try {
8182
await connection.getRepository(Post).find({
83+
// @ts-expect-error - null should be marked as unsafe by default
8284
where: {
8385
text: null,
8486
},
@@ -144,6 +146,7 @@ describe("find options > null and undefined handling", () => {
144146
await connection
145147
.createQueryBuilder(Post, "post")
146148
.setFindOptions({
149+
// @ts-expect-error - null should be marked as unsafe by default
147150
where: {
148151
category: null,
149152
},
@@ -160,6 +163,7 @@ describe("find options > null and undefined handling", () => {
160163
// Test with Repository
161164
try {
162165
await connection.getRepository(Post).find({
166+
// @ts-expect-error - null should be marked as unsafe by default
163167
where: {
164168
category: null,
165169
},

0 commit comments

Comments
 (0)