mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user