From 958f8a883500602022c27f516ae46e05cc597871 Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 18 Jan 2025 14:22:37 +0400 Subject: [PATCH] test: Disable `combineScalarFilters` --- README.md | 2 ++ Taskfile | 8 ++++---- src/test/combine-scalar-filters.spec.ts | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e9775afc..98ac39a1 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ Default: `@prisma/client` #### `combineScalarFilters` +DOESNT WORK IN v21+ + Combine nested/nullable scalar filters to single Type: `boolean` Default: `false` diff --git a/Taskfile b/Taskfile index 420cffb7..f5827d76 100644 --- a/Taskfile +++ b/Taskfile @@ -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 diff --git a/src/test/combine-scalar-filters.spec.ts b/src/test/combine-scalar-filters.spec.ts index cb49156f..c7e158e6 100644 --- a/src/test/combine-scalar-filters.spec.ts +++ b/src/test/combine-scalar-filters.spec.ts @@ -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`],