jestronaut 0.3.15 → 0.3.17
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.
- package/README.md +1 -0
- package/bin/jestronaut.js +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
An interactive terminal dashboard for Jest — navigate live test results, suites, and failure stack traces without leaving your terminal.
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/jestronaut)
|
|
5
6
|

|
|
6
7
|

|
|
7
8
|

|
package/bin/jestronaut.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// If stdout is not a TTY (CI, piped output, etc.), skip the TUI entirely
|
|
4
|
+
// and let Jest run with its default reporter.
|
|
5
|
+
if (!process.stdout.isTTY) {
|
|
6
|
+
const { run } = await import('jest');
|
|
7
|
+
// Override the reporter config so DashboardReporter is never instantiated
|
|
8
|
+
process.argv.push('--reporters=default');
|
|
9
|
+
await run();
|
|
10
|
+
process.exit();
|
|
11
|
+
}
|
|
12
|
+
|
|
3
13
|
// Intercept stdout/stderr before Jest loads anything so its early
|
|
4
14
|
// output ("Determining test suites...") doesn't bleed into the TUI.
|
|
5
15
|
const realStdout = process.stdout.write.bind(process.stdout);
|
package/package.json
CHANGED