Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed May 23, 2024
1 parent 19c4aac commit 788c005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema-engine/cli/tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ fn introspect_postgres(api: TestApi) {
stdout.read_line(&mut response).unwrap();

let expected = expect![[r#"
{"jsonrpc":"2.0","result":{"datamodel":"generator js {\n provider = \"prisma-client-js\"\n previewFeatures = [\"views\"]\n}\n\ndatasource db {\n provider = \"postgres\"\n url = env(\"TEST_DATABASE_URL\")\n}\n\nmodel A {\n id Int @id @default(autoincrement())\n data String?\n}\n\n/// The underlying view does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.\nview B {\n col Int?\n\n @@ignore\n}\n","views":[{"definition":"SELECT\n 1 AS col;","name":"B","schema":"public"}],"warnings":"*** WARNING ***\n\nThe following views were ignored as they do not have a valid unique identifier or id. This is currently not supported by Prisma Client. Please refer to the documentation on defining unique identifiers in views: https://pris.ly/d/view-identifiers\n - \"B\"\n"},"id":1}
{"jsonrpc":"2.0","result":{"datamodels":[{"content":"generator js {\n provider = \"prisma-client-js\"\n previewFeatures = [\"views\"]\n}\n\ndatasource db {\n provider = \"postgres\"\n url = env(\"TEST_DATABASE_URL\")\n}\n\nmodel A {\n id Int @id @default(autoincrement())\n data String?\n}\n\n/// The underlying view does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.\nview B {\n col Int?\n\n @@ignore\n}\n","path":"schema.prisma"}],"views":[{"definition":"SELECT\n 1 AS col;","name":"B","schema":"public"}],"warnings":"*** WARNING ***\n\nThe following views were ignored as they do not have a valid unique identifier or id. This is currently not supported by Prisma Client. Please refer to the documentation on defining unique identifiers in views: https://pris.ly/d/view-identifiers\n - \"B\"\n"},"id":1}
"#]];

expected.assert_eq(&response);
Expand Down

0 comments on commit 788c005

Please sign in to comment.