Skip to content

Commit

Permalink
test: Disable combineScalarFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed Jan 18, 2025
1 parent 166d920 commit 958f8a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ Default: `@prisma/client`

#### `combineScalarFilters`

DOESNT WORK IN v21+

Combine nested/nullable scalar filters to single
Type: `boolean`
Default: `false`
Expand Down
8 changes: 4 additions & 4 deletions Taskfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ compatibilty_check() {
rm -rf ./@generated && npm run prisma:g && npm run tscheck
sed -i 's/noAtomicOperations *= true/noAtomicOperations = false/g' prisma/schema.prisma

echo === Check combineScalarFilters ===
sed -i 's/combineScalarFilters *= false/combineScalarFilters = true/g' prisma/schema.prisma
rm -rf ./@generated && npm run prisma:g && npm run tscheck
sed -i 's/combineScalarFilters *= true/combineScalarFilters = false/g' prisma/schema.prisma
# echo === Check combineScalarFilters ===
# sed -i 's/combineScalarFilters *= false/combineScalarFilters = true/g' prisma/schema.prisma
# rm -rf ./@generated && npm run prisma:g && npm run tscheck
# sed -i 's/combineScalarFilters *= true/combineScalarFilters = false/g' prisma/schema.prisma

echo === Switching reExport ===
sed -i 's/reExport *= None/reExport = All/g' prisma/schema.prisma
Expand Down
1 change: 1 addition & 0 deletions src/test/combine-scalar-filters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ describe('combine scalar filters on array', () => {
});

describe.skip('empty relation filter input', () => {
// TODO: Enable Check combineScalarFilters in Taskfile
before(async () => {
({ project, sourceFiles } = await testGenerate({
options: [`combineScalarFilters = true`],
Expand Down

0 comments on commit 958f8a8

Please sign in to comment.