Skip to content

Commit 47e94b7

Browse files
committed
test: fix unit tests
1 parent 9d2752f commit 47e94b7

11 files changed

+106
-2
lines changed

query-engine/dmmf/test_files/functions.json

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"isReadOnly": false,
1616
"hasDefaultValue": false,
1717
"type": "Int",
18+
"nativeType": null,
1819
"isGenerated": false,
1920
"isUpdatedAt": false
2021
},
@@ -28,6 +29,7 @@
2829
"isReadOnly": false,
2930
"hasDefaultValue": true,
3031
"type": "DateTime",
32+
"nativeType": null,
3133
"default": {
3234
"name": "now",
3335
"args": []
@@ -45,6 +47,7 @@
4547
"isReadOnly": false,
4648
"hasDefaultValue": true,
4749
"type": "String",
50+
"nativeType": null,
4851
"default": {
4952
"name": "cuid",
5053
"args": []

query-engine/dmmf/test_files/general.json

+40
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"isReadOnly": false,
3535
"hasDefaultValue": false,
3636
"type": "Int",
37+
"nativeType": null,
3738
"isGenerated": false,
3839
"isUpdatedAt": false
3940
},
@@ -47,6 +48,7 @@
4748
"isReadOnly": false,
4849
"hasDefaultValue": false,
4950
"type": "DateTime",
51+
"nativeType": null,
5052
"isGenerated": false,
5153
"isUpdatedAt": false
5254
},
@@ -60,6 +62,7 @@
6062
"isReadOnly": false,
6163
"hasDefaultValue": false,
6264
"type": "String",
65+
"nativeType": null,
6366
"isGenerated": false,
6467
"isUpdatedAt": false
6568
},
@@ -74,6 +77,7 @@
7477
"isReadOnly": false,
7578
"hasDefaultValue": false,
7679
"type": "String",
80+
"nativeType": null,
7781
"isGenerated": false,
7882
"isUpdatedAt": false
7983
},
@@ -87,6 +91,7 @@
8791
"isReadOnly": false,
8892
"hasDefaultValue": false,
8993
"type": "Post",
94+
"nativeType": null,
9095
"relationName": "author",
9196
"relationFromFields": [],
9297
"relationToFields": [],
@@ -103,6 +108,7 @@
103108
"isReadOnly": false,
104109
"hasDefaultValue": false,
105110
"type": "Profile",
111+
"nativeType": null,
106112
"relationName": "ProfileToUser",
107113
"relationFromFields": [],
108114
"relationToFields": [],
@@ -129,6 +135,7 @@
129135
"isReadOnly": false,
130136
"hasDefaultValue": false,
131137
"type": "Int",
138+
"nativeType": null,
132139
"isGenerated": false,
133140
"isUpdatedAt": false
134141
},
@@ -142,6 +149,7 @@
142149
"isReadOnly": true,
143150
"hasDefaultValue": false,
144151
"type": "Int",
152+
"nativeType": null,
145153
"isGenerated": false,
146154
"isUpdatedAt": false
147155
},
@@ -155,6 +163,7 @@
155163
"isReadOnly": false,
156164
"hasDefaultValue": false,
157165
"type": "User",
166+
"nativeType": null,
158167
"relationName": "ProfileToUser",
159168
"relationFromFields": [
160169
"userId"
@@ -175,6 +184,7 @@
175184
"isReadOnly": false,
176185
"hasDefaultValue": false,
177186
"type": "String",
187+
"nativeType": null,
178188
"isGenerated": false,
179189
"isUpdatedAt": false
180190
}
@@ -198,6 +208,7 @@
198208
"isReadOnly": false,
199209
"hasDefaultValue": false,
200210
"type": "Int",
211+
"nativeType": null,
201212
"isGenerated": false,
202213
"isUpdatedAt": false
203214
},
@@ -211,6 +222,7 @@
211222
"isReadOnly": false,
212223
"hasDefaultValue": false,
213224
"type": "DateTime",
225+
"nativeType": null,
214226
"isGenerated": false,
215227
"isUpdatedAt": false
216228
},
@@ -224,6 +236,7 @@
224236
"isReadOnly": false,
225237
"hasDefaultValue": false,
226238
"type": "DateTime",
239+
"nativeType": null,
227240
"isGenerated": false,
228241
"isUpdatedAt": false
229242
},
@@ -237,6 +250,7 @@
237250
"isReadOnly": false,
238251
"hasDefaultValue": true,
239252
"type": "String",
253+
"nativeType": null,
240254
"default": "Default-Title",
241255
"isGenerated": false,
242256
"isUpdatedAt": false
@@ -251,6 +265,7 @@
251265
"isReadOnly": false,
252266
"hasDefaultValue": true,
253267
"type": "Boolean",
268+
"nativeType": null,
254269
"default": false,
255270
"isGenerated": false,
256271
"isUpdatedAt": false
@@ -265,6 +280,7 @@
265280
"isReadOnly": false,
266281
"hasDefaultValue": true,
267282
"type": "Boolean",
283+
"nativeType": null,
268284
"default": false,
269285
"isGenerated": false,
270286
"isUpdatedAt": false
@@ -279,6 +295,7 @@
279295
"isReadOnly": true,
280296
"hasDefaultValue": false,
281297
"type": "Int",
298+
"nativeType": null,
282299
"isGenerated": false,
283300
"isUpdatedAt": false
284301
},
@@ -292,6 +309,7 @@
292309
"isReadOnly": false,
293310
"hasDefaultValue": false,
294311
"type": "User",
312+
"nativeType": null,
295313
"relationName": "author",
296314
"relationFromFields": [
297315
"authorId"
@@ -312,6 +330,7 @@
312330
"isReadOnly": false,
313331
"hasDefaultValue": false,
314332
"type": "PostToCategory",
333+
"nativeType": null,
315334
"relationName": "PostToPostToCategory",
316335
"relationFromFields": [],
317336
"relationToFields": [],
@@ -344,6 +363,7 @@
344363
"isReadOnly": false,
345364
"hasDefaultValue": false,
346365
"type": "Int",
366+
"nativeType": null,
347367
"isGenerated": false,
348368
"isUpdatedAt": false
349369
},
@@ -357,6 +377,7 @@
357377
"isReadOnly": false,
358378
"hasDefaultValue": false,
359379
"type": "String",
380+
"nativeType": null,
360381
"isGenerated": false,
361382
"isUpdatedAt": false
362383
},
@@ -370,6 +391,7 @@
370391
"isReadOnly": false,
371392
"hasDefaultValue": false,
372393
"type": "PostToCategory",
394+
"nativeType": null,
373395
"relationName": "CategoryToPostToCategory",
374396
"relationFromFields": [],
375397
"relationToFields": [],
@@ -386,6 +408,7 @@
386408
"isReadOnly": false,
387409
"hasDefaultValue": false,
388410
"type": "CategoryEnum",
411+
"nativeType": null,
389412
"isGenerated": false,
390413
"isUpdatedAt": false
391414
}
@@ -409,6 +432,7 @@
409432
"isReadOnly": false,
410433
"hasDefaultValue": false,
411434
"type": "Int",
435+
"nativeType": null,
412436
"isGenerated": false,
413437
"isUpdatedAt": false
414438
},
@@ -422,6 +446,7 @@
422446
"isReadOnly": true,
423447
"hasDefaultValue": false,
424448
"type": "String",
449+
"nativeType": null,
425450
"isGenerated": false,
426451
"isUpdatedAt": false
427452
},
@@ -435,6 +460,7 @@
435460
"isReadOnly": true,
436461
"hasDefaultValue": false,
437462
"type": "DateTime",
463+
"nativeType": null,
438464
"isGenerated": false,
439465
"isUpdatedAt": false
440466
},
@@ -448,6 +474,7 @@
448474
"isReadOnly": true,
449475
"hasDefaultValue": false,
450476
"type": "Int",
477+
"nativeType": null,
451478
"isGenerated": false,
452479
"isUpdatedAt": false
453480
},
@@ -461,6 +488,7 @@
461488
"isReadOnly": false,
462489
"hasDefaultValue": false,
463490
"type": "Post",
491+
"nativeType": null,
464492
"relationName": "PostToPostToCategory",
465493
"relationFromFields": [
466494
"postTitle",
@@ -483,6 +511,7 @@
483511
"isReadOnly": false,
484512
"hasDefaultValue": false,
485513
"type": "Category",
514+
"nativeType": null,
486515
"relationName": "CategoryToPostToCategory",
487516
"relationFromFields": [
488517
"categoryId"
@@ -526,6 +555,7 @@
526555
"isReadOnly": false,
527556
"hasDefaultValue": false,
528557
"type": "Int",
558+
"nativeType": null,
529559
"isGenerated": false,
530560
"isUpdatedAt": false
531561
},
@@ -539,6 +569,7 @@
539569
"isReadOnly": true,
540570
"hasDefaultValue": false,
541571
"type": "Int",
572+
"nativeType": null,
542573
"isGenerated": false,
543574
"isUpdatedAt": false
544575
},
@@ -552,6 +583,7 @@
552583
"isReadOnly": false,
553584
"hasDefaultValue": false,
554585
"type": "B",
586+
"nativeType": null,
555587
"relationName": "AToB",
556588
"relationFromFields": [
557589
"bId"
@@ -582,6 +614,7 @@
582614
"isReadOnly": false,
583615
"hasDefaultValue": false,
584616
"type": "Int",
617+
"nativeType": null,
585618
"isGenerated": false,
586619
"isUpdatedAt": false
587620
},
@@ -595,6 +628,7 @@
595628
"isReadOnly": false,
596629
"hasDefaultValue": false,
597630
"type": "A",
631+
"nativeType": null,
598632
"relationName": "AToB",
599633
"relationFromFields": [],
600634
"relationToFields": [],
@@ -621,6 +655,7 @@
621655
"isReadOnly": false,
622656
"hasDefaultValue": false,
623657
"type": "Int",
658+
"nativeType": null,
624659
"isGenerated": false,
625660
"isUpdatedAt": false
626661
},
@@ -634,6 +669,7 @@
634669
"isReadOnly": false,
635670
"hasDefaultValue": false,
636671
"type": "Int",
672+
"nativeType": null,
637673
"isGenerated": false,
638674
"isUpdatedAt": false
639675
},
@@ -647,6 +683,7 @@
647683
"isReadOnly": false,
648684
"hasDefaultValue": false,
649685
"type": "Int",
686+
"nativeType": null,
650687
"isGenerated": false,
651688
"isUpdatedAt": false
652689
},
@@ -660,6 +697,7 @@
660697
"isReadOnly": false,
661698
"hasDefaultValue": false,
662699
"type": "Int",
700+
"nativeType": null,
663701
"isGenerated": false,
664702
"isUpdatedAt": false
665703
}
@@ -702,6 +740,7 @@
702740
"isReadOnly": false,
703741
"hasDefaultValue": false,
704742
"type": "Int",
743+
"nativeType": null,
705744
"isGenerated": false,
706745
"isUpdatedAt": false
707746
},
@@ -715,6 +754,7 @@
715754
"isReadOnly": false,
716755
"hasDefaultValue": false,
717756
"type": "Int",
757+
"nativeType": null,
718758
"isGenerated": false,
719759
"isUpdatedAt": false
720760
}

query-engine/dmmf/test_files/ignore.json

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"isReadOnly": false,
1616
"hasDefaultValue": true,
1717
"type": "Int",
18+
"nativeType": null,
1819
"default": {
1920
"name": "autoincrement",
2021
"args": []
@@ -32,6 +33,7 @@
3233
"isReadOnly": false,
3334
"hasDefaultValue": true,
3435
"type": "Int",
36+
"nativeType": null,
3537
"default": {
3638
"name": "dbgenerated",
3739
"args": [

0 commit comments

Comments
 (0)