Skip to content

Commit

Permalink
test: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-vuiko committed Nov 5, 2024
1 parent 3047adf commit 59ae2e7
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 2 deletions.
3 changes: 3 additions & 0 deletions query-engine/dmmf/test_files/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -28,6 +29,7 @@
"isReadOnly": false,
"hasDefaultValue": true,
"type": "DateTime",
"nativeType": null,
"default": {
"name": "now",
"args": []
Expand All @@ -45,6 +47,7 @@
"isReadOnly": false,
"hasDefaultValue": true,
"type": "String",
"nativeType": null,
"default": {
"name": "cuid",
"args": []
Expand Down
40 changes: 40 additions & 0 deletions query-engine/dmmf/test_files/general.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -47,6 +48,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "DateTime",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -60,6 +62,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -74,6 +77,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -87,6 +91,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Post",
"nativeType": null,
"relationName": "author",
"relationFromFields": [],
"relationToFields": [],
Expand All @@ -103,6 +108,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Profile",
"nativeType": null,
"relationName": "ProfileToUser",
"relationFromFields": [],
"relationToFields": [],
Expand All @@ -129,6 +135,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -142,6 +149,7 @@
"isReadOnly": true,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -155,6 +163,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "User",
"nativeType": null,
"relationName": "ProfileToUser",
"relationFromFields": [
"userId"
Expand All @@ -175,6 +184,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
}
Expand All @@ -198,6 +208,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -211,6 +222,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "DateTime",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -224,6 +236,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "DateTime",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -237,6 +250,7 @@
"isReadOnly": false,
"hasDefaultValue": true,
"type": "String",
"nativeType": null,
"default": "Default-Title",
"isGenerated": false,
"isUpdatedAt": false
Expand All @@ -251,6 +265,7 @@
"isReadOnly": false,
"hasDefaultValue": true,
"type": "Boolean",
"nativeType": null,
"default": false,
"isGenerated": false,
"isUpdatedAt": false
Expand All @@ -265,6 +280,7 @@
"isReadOnly": false,
"hasDefaultValue": true,
"type": "Boolean",
"nativeType": null,
"default": false,
"isGenerated": false,
"isUpdatedAt": false
Expand All @@ -279,6 +295,7 @@
"isReadOnly": true,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -292,6 +309,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "User",
"nativeType": null,
"relationName": "author",
"relationFromFields": [
"authorId"
Expand All @@ -312,6 +330,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "PostToCategory",
"nativeType": null,
"relationName": "PostToPostToCategory",
"relationFromFields": [],
"relationToFields": [],
Expand Down Expand Up @@ -344,6 +363,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -357,6 +377,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -370,6 +391,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "PostToCategory",
"nativeType": null,
"relationName": "CategoryToPostToCategory",
"relationFromFields": [],
"relationToFields": [],
Expand All @@ -386,6 +408,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "CategoryEnum",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
}
Expand All @@ -409,6 +432,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -422,6 +446,7 @@
"isReadOnly": true,
"hasDefaultValue": false,
"type": "String",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -435,6 +460,7 @@
"isReadOnly": true,
"hasDefaultValue": false,
"type": "DateTime",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -448,6 +474,7 @@
"isReadOnly": true,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -461,6 +488,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Post",
"nativeType": null,
"relationName": "PostToPostToCategory",
"relationFromFields": [
"postTitle",
Expand All @@ -483,6 +511,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Category",
"nativeType": null,
"relationName": "CategoryToPostToCategory",
"relationFromFields": [
"categoryId"
Expand Down Expand Up @@ -526,6 +555,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -539,6 +569,7 @@
"isReadOnly": true,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -552,6 +583,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "B",
"nativeType": null,
"relationName": "AToB",
"relationFromFields": [
"bId"
Expand Down Expand Up @@ -582,6 +614,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -595,6 +628,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "A",
"nativeType": null,
"relationName": "AToB",
"relationFromFields": [],
"relationToFields": [],
Expand All @@ -621,6 +655,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -634,6 +669,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -647,6 +683,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -660,6 +697,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
}
Expand Down Expand Up @@ -702,6 +740,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
},
Expand All @@ -715,6 +754,7 @@
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Int",
"nativeType": null,
"isGenerated": false,
"isUpdatedAt": false
}
Expand Down
2 changes: 2 additions & 0 deletions query-engine/dmmf/test_files/ignore.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"isReadOnly": false,
"hasDefaultValue": true,
"type": "Int",
"nativeType": null,
"default": {
"name": "autoincrement",
"args": []
Expand All @@ -32,6 +33,7 @@
"isReadOnly": false,
"hasDefaultValue": true,
"type": "Int",
"nativeType": null,
"default": {
"name": "dbgenerated",
"args": [
Expand Down
Loading

0 comments on commit 59ae2e7

Please sign in to comment.