mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +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:
1 parent
b69d70664c
commit
3eed52b49b
1 file changed
+3
-1
@@ -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