@arghajit/dummy 0.3.18 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -180,6 +180,9 @@ function cleanupShardDirectories(shardDirs) {
180
180
 
181
181
  // Main execution
182
182
  (async () => {
183
+ const { animate } = await import("./terminal-logo.mjs");
184
+ await animate();
185
+
183
186
  const REPORT_DIR = await getReportDir();
184
187
 
185
188
  console.log(`\nšŸ”„ Playwright Pulse - Merge Reports (Sharding Mode)\n`);
@@ -8,6 +8,7 @@ import {
8
8
  existsSync as fsExistsSync, // Renamed
9
9
  } from "fs"; // CHANGED for specific functions
10
10
  import { fileURLToPath } from "url";
11
+ import { animate } from "./terminal-logo.mjs";
11
12
  import { fork } from "child_process"; // This was missing in your sendReport.js but present in generate-email-report.js and needed for runScript
12
13
  import "dotenv/config"; // CHANGED for dotenv
13
14
  import { getOutputDir } from "./config-reader.mjs";
@@ -485,6 +486,8 @@ async function fetchCredentials(reportDir, retries = 10) {
485
486
  }
486
487
 
487
488
  const main = async () => {
489
+ await animate();
490
+
488
491
  // Ensure fetch is initialized (dynamic import at top or here)
489
492
  if (!fetch) {
490
493
  try {
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env node
2
+ import chalk from "chalk";
3
+
4
+ const logoRaw = ` :------------
5
+ --------------------
6
+ -- ------------------------
7
+ ------ ----------------
8
+ ----- -------------
9
+ ------ ----------- ---------
10
+ ------- -------- ------ ---------
11
+ ------------- ---- ---- --- -----------
12
+ ----------- --- ---- ----- ------------
13
+ ---------- ------- --------------
14
+ ---------------- ----------- -----
15
+ ----- ----------- -----
16
+ ------------- ------
17
+ -------------------------------
18
+ --------------------
19
+ --------------`;
20
+
21
+ /**
22
+ * Plays the Pulse Logo animation.
23
+ * Exported so it can be triggered by other scripts in your bin configuration.
24
+ */
25
+ export async function animate() {
26
+ // Just display the logo once without animation
27
+ // Terminal clearing doesn't work reliably across all environments
28
+ console.log(""); // Empty line for spacing
29
+ console.log(
30
+ logoRaw
31
+ .split("\n")
32
+ .map((line) => chalk.hex("#3f51b5")(line))
33
+ .join("\n"),
34
+ );
35
+ console.log(
36
+ chalk.white.bold(" P L A Y W R I G H T P U L S E R E P O R T"),
37
+ );
38
+ console.log(
39
+ chalk.gray(" ──────────────────────────────────────────────────"),
40
+ );
41
+ console.log(""); // Empty line after logo
42
+ }
43
+
44
+ // Check if the script is being run directly (e.g., `pulse-logo`)
45
+ const isDirectRun =
46
+ import.meta.url === `file://${process.argv[1]}` ||
47
+ process.argv[1]?.endsWith("terminal-logo.mjs");
48
+
49
+ if (isDirectRun) {
50
+ animate();
51
+ }