8000 If "heft --debug test" or "heft test --verbose" is specified, then en… · strogo/rushstack@09afe7d · GitHub
[go: up one dir, main page]

Skip to content

Commit 09afe7d

Browse files
committed
If "heft --debug test" or "heft test --verbose" is specified, then enable Jest's "verbose=true" so that console.log() isn't delayed until after the test finishes (CustomConsole internally instead of BufferedConsole)
1 parent ac85843 commit 09afe7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

heft-plugins/heft-jest-plugin/src/JestPlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ export default class JestPlugin implements IHeftTaskPlugin<IJestPluginOptions> {
591591
rootDir: buildFolderPath,
592592

593593
silent: options.silent || false,
594+
verbose: (taskSession.parameters.verbose || taskSession.parameters.debug) && !options.silent,
594595
testNamePattern: options.testNamePattern,
595596
testPathIgnorePatterns: options.testPathIgnorePatterns ? [options.testPathIgnorePatterns] : undefined,
596597
testPathPattern: options.testPathPattern ? [options.testPathPattern] : undefined,

0 commit comments

Comments
 (0)
0