File tree Expand file tree Collapse file tree
test/functional/null-undefined-handling Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments