flake-monster 0.4.4 → 0.4.5
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/package.json +1 -1
- package/src/cli/commands/test.js +8 -5
package/package.json
CHANGED
package/src/cli/commands/test.js
CHANGED
|
@@ -44,14 +44,17 @@ export function registerTestCommand(program) {
|
|
|
44
44
|
const jsonOutput = options.format === 'json';
|
|
45
45
|
|
|
46
46
|
// Resolve which runner parser to use
|
|
47
|
-
|
|
47
|
+
let runner = options.runner === 'auto'
|
|
48
48
|
? detectRunner(testCmd)
|
|
49
49
|
: options.runner;
|
|
50
50
|
|
|
51
|
-
// node:test
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
// node:test default reporter (spec) outputs to stderr, not stdout.
|
|
52
|
+
// Force TAP reporter for machine-parseable output on stdout.
|
|
53
|
+
let effectiveCmd = testCmd;
|
|
54
|
+
if (runner === 'node-test' && !testCmd.includes('--test-reporter')) {
|
|
55
|
+
effectiveCmd = testCmd.replace(/node\s+--test/, 'node --test --test-reporter tap');
|
|
56
|
+
runner = 'tap';
|
|
57
|
+
}
|
|
55
58
|
|
|
56
59
|
const profile = FlakeProfile.fromConfig(merged);
|
|
57
60
|
const registry = new AdapterRegistry();
|