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
Lauren Tan committed
Apr 27, 2023 at 16:16 UTC
3eed52b49b0885840ca236fee18724f3564b47e8
1 file changed
+3
-1
compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts
+3
-1
@@ -98,11 +98,13 @@ export default function generateTestsFromFixtures(
98
const lines = input.split("\n");
99
if (lines[0]!.indexOf("@only") !== -1) {
100
testCommand = test.only;
101
- debug = true;
101
}
102
if (lines[0]!.indexOf("@skip") !== -1) {
103
testCommand = test.skip;
104
}
105
+ if (lines[0]!.indexOf("@debug") !== -1) {
106
+ debug = true;
107
+ }
108
if (lines[0]!.indexOf("@forgetDirective") !== -1) {
109
enableOnlyOnUseForgetDirective = true;
110
}