Skip to content

Commit

Permalink
psl: Make prismaSchemaFolder feature public (#4896)
Browse files Browse the repository at this point in the history
* psl: Make `prismaSchemaFolder` feature public

* Fix tests

* Update snapshots
  • Loading branch information
SevInf authored Jun 3, 2024
1 parent 4f418dd commit 7320bfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion psl/psl-core/src/common/preview_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ pub const ALL_PREVIEW_FEATURES: FeatureMap = FeatureMap {
| Views
| RelationJoins
| OmitApi
| PrismaSchemaFolder
}),
deprecated: enumflags2::make_bitflags!(PreviewFeature::{
AtomicNumberOperations
Expand Down Expand Up @@ -132,7 +133,7 @@ pub const ALL_PREVIEW_FEATURES: FeatureMap = FeatureMap {
| TransactionApi
| UncheckedScalarInputs
}),
hidden: enumflags2::make_bitflags!(PreviewFeature::{PrismaSchemaFolder | ReactNative}),
hidden: enumflags2::make_bitflags!(PreviewFeature::{ReactNative}),
};

#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion psl/psl/tests/config/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ fn nice_error_for_unknown_generator_preview_feature() {
.unwrap_err();

let expectation = expect![[r#"
[1;91merror[0m: [1mThe preview feature "foo" is not known. Expected one of: deno, driverAdapters, fullTextIndex, fullTextSearch, metrics, multiSchema, nativeDistinct, postgresqlExtensions, tracing, views, relationJoins, omitApi[0m
[1;91merror[0m: [1mThe preview feature "foo" is not known. Expected one of: deno, driverAdapters, fullTextIndex, fullTextSearch, metrics, multiSchema, nativeDistinct, postgresqlExtensions, tracing, views, relationJoins, prismaSchemaFolder, omitApi[0m
--> schema.prisma:3
 | 
 2 |  provider = "prisma-client-js"
Expand Down

0 comments on commit 7320bfa

Please sign in to comment.