From 3eed52b49b0885840ca236fee18724f3564b47e8 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Thu, 27 Apr 2023 16:16:50 -0400 Subject: [PATCH] Only debug with @debug pragma You don't always want to debug all the passes when you use @only, so split it out into its own pragma --- .../src/__tests__/test-utils/generateTestsFromFixtures.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts b/compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts index 568360f847..ffaf53ae70 100644 --- a/compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts +++ b/compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts @@ -98,11 +98,13 @@ export default function generateTestsFromFixtures( const lines = input.split("\n"); if (lines[0]!.indexOf("@only") !== -1) { testCommand = test.only; - debug = true; } if (lines[0]!.indexOf("@skip") !== -1) { testCommand = test.skip; } + if (lines[0]!.indexOf("@debug") !== -1) { + debug = true; + } if (lines[0]!.indexOf("@forgetDirective") !== -1) { enableOnlyOnUseForgetDirective = true; }