diff --git a/tools/cdk-build-tools/lib/feature-flag.ts b/tools/cdk-build-tools/lib/feature-flag.ts index 6e994a2435d30..eec1d28d6e9e4 100644 --- a/tools/cdk-build-tools/lib/feature-flag.ts +++ b/tools/cdk-build-tools/lib/feature-flag.ts @@ -30,9 +30,9 @@ export function testFutureBehavior( const major = cdkMajorVersion(repoRoot); if (major === 2) { - // In CDKv2, the default behaviour is as if the feature flags are enabled. So, ignore the feature flags passed. - const app = new cdkApp(); - return test(name, async () => fn(app)); + // Temporaily disable CDKv2 behaviour + // const app = new cdkApp(); + // return test(name, async () => fn(app)); } const app = new cdkApp({ context: flags }); return test(name, () => fn(app)); @@ -59,8 +59,8 @@ export function testLegacyBehavior( const major = cdkMajorVersion(repoRoot); if (major === 2) { - // In CDKv2, legacy behaviour is not supported. Skip the test. - return; + // Temporarily disable CDKv2 behaviour + // return; } const app = new cdkApp(); return test(name, () => fn(app));