Skip to content

fix(typegen): view relationships ordering #1508

fix(typegen): view relationships ordering

fix(typegen): view relationships ordering #1508

Triggered via pull request October 19, 2024 07:48
Status Failure
Total duration 2m 26s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
test/index.test.ts > typegen: typescript: test/server/typegen.ts#L6
Error: Snapshot `typegen: typescript 1` mismatched - Expected + Received @@ -249,17 +249,17 @@ } Relationships: [ { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] - referencedRelation: "users" + referencedRelation: "a_view" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] - referencedRelation: "a_view" + referencedRelation: "users" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] @@ -286,17 +286,17 @@ } Relationships: [ { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] - referencedRelation: "users" + referencedRelation: "a_view" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] - referencedRelation: "a_view" + referencedRelation: "users" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] ❯ test/server/typegen.ts:6:16
test/index.test.ts > typegen w/ one-to-one relationships: test/server/typegen.ts#L537
Error: Snapshot `typegen w/ one-to-one relationships 1` mismatched - Expected + Received @@ -257,18 +257,18 @@ Relationships: [ { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] isOneToOne: false - referencedRelation: "users" + referencedRelation: "a_view" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] isOneToOne: false - referencedRelation: "a_view" + referencedRelation: "users" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] @@ -297,18 +297,18 @@ Relationships: [ { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] isOneToOne: false - referencedRelation: "users" + referencedRelation: "a_view" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] isOneToOne: false - referencedRelation: "a_view" + referencedRelation: "users" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] ❯ test/server/typegen.ts:537:16
test/index.test.ts > typegen: typescript w/ one-to-one relationships: test/server/typegen.ts#L1081
Error: Snapshot `typegen: typescript w/ one-to-one relationships 1` mismatched - Expected + Received @@ -257,18 +257,18 @@ Relationships: [ { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] isOneToOne: false - referencedRelation: "users" + referencedRelation: "a_view" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] isOneToOne: false - referencedRelation: "a_view" + referencedRelation: "users" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] @@ -297,18 +297,18 @@ Relationships: [ { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] isOneToOne: false - referencedRelation: "users" + referencedRelation: "a_view" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] isOneToOne: false - referencedRelation: "a_view" + referencedRelation: "users" referencedColumns: ["id"] }, { foreignKeyName: "todos_user-id_fkey" columns: ["user-id"] ❯ test/server/typegen.ts:1081:16
Test
Process completed with exit code 1.