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
This commit is contained in:
Lauren Tan
2023-04-27 16:16:50 -04:00
parent b69d70664c
commit 3eed52b49b
@@ -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;
}