Skip to content

Commit

Permalink
feat: skip printing logo in jest worker
Browse files Browse the repository at this point in the history
  • Loading branch information
leegeunhyeok committed Oct 25, 2023
1 parent e2b35ee commit c9c7daa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/core/lib/bundler/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ export class ReactNativeEsbuildBundler extends BundlerEventEmitter {
* Must be bootstrapped first at the entry point
*/
public static bootstrap(configFilePath?: string): void {
printLogo();
printVersion();
// Skip printing the logo in the Jest worker process.
if (process.env.JEST_WORKER_ID === undefined) {
printLogo();
printVersion();
}

const config = loadConfig(configFilePath);
config.logger?.disabled ?? false ? Logger.disable() : Logger.enable();
Logger.setTimestampFormat(config.logger?.timestamp ?? null);
Expand Down

2 comments on commit c9c7daa

@vercel
Copy link

@vercel vercel bot commented on c9c7daa Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 16.25% 329/2024
🔴 Branches 16.08% 82/510
🔴 Functions 11.02% 66/599
🔴 Lines 15.53% 299/1925

Test suite run success

83 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from c9c7daa

Please sign in to comment.