headlamp 0.1.20 → 0.1.22

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/dist/cli.cjs CHANGED
@@ -53768,9 +53768,12 @@ var init_args = __esm({
53768
53768
  ),
53769
53769
  rule.withLookahead(
53770
53770
  "--testPathPattern",
53771
- (flag, lookahead) => step([ActionBuilders.jestArgs([flag, lookahead])], true)
53771
+ (flag, lookahead) => step([ActionBuilders.jestArgs([flag, lookahead]), ActionBuilders.selectionHint()], true)
53772
+ ),
53773
+ rule.startsWith(
53774
+ "--testPathPattern=",
53775
+ (value2) => step([ActionBuilders.jestArg(value2), ActionBuilders.selectionHint()])
53772
53776
  ),
53773
- rule.startsWith("--testPathPattern=", (value2) => step([ActionBuilders.jestArg(value2)])),
53774
53777
  rule.inSet(
53775
53778
  (env) => env.jestFlags,
53776
53779
  (value2) => step([ActionBuilders.jestArg(value2)])
@@ -56257,9 +56260,6 @@ var decideShouldRunJest = (vitestFiles, jestFiles, opts) => {
56257
56260
  const looksLikePath = (pathText) => /[\\/]/.test(pathText) || /\.(m?[tj]sx?)$/i.test(pathText);
56258
56261
  const anyTestSelected = (opts.selectionPaths ?? []).some(looksLikeTestPath);
56259
56262
  const anyPathSelected = (opts.selectionPaths ?? []).some(looksLikePath);
56260
- if (!opts.selectionSpecified) {
56261
- return { shouldRunJest: false, share, reason: "broad_run_guard" };
56262
- }
56263
56263
  if (jestFiles.length === 0) {
56264
56264
  return { shouldRunJest: false, share, reason: "no_jest_tests" };
56265
56265
  }
@@ -57596,8 +57596,7 @@ module.exports = class BridgeEnv extends NodeEnvironment {
57596
57596
  const dbgPath = process.env.JEST_BRIDGE_DEBUG_PATH;
57597
57597
  this._dbg = (msg) => {
57598
57598
  try {
57599
- if (process.env.JEST_BRIDGE_DEBUG && dbgPath) fs.appendFileSync(dbgPath, String(msg) + '
57600
- ', 'utf8');
57599
+ if (process.env.JEST_BRIDGE_DEBUG && dbgPath) fs.appendFileSync(dbgPath, String(msg) + '\\n', 'utf8');
57601
57600
  } catch {}
57602
57601
  };
57603
57602
  } catch {}
@@ -57628,8 +57627,7 @@ module.exports = class BridgeEnv extends NodeEnvironment {
57628
57627
  } catch {
57629
57628
  line += JSON.stringify({ type: String(payload && payload.type || 'unknown') });
57630
57629
  }
57631
- stderr.write(line + '
57632
- ');
57630
+ stderr.write(line + '\\n');
57633
57631
  } catch {}
57634
57632
  };
57635
57633
  // Expose to class methods (e.g., handleTestEvent). Also keep a safe fallback.
@@ -60361,9 +60359,6 @@ var program = async () => {
60361
60359
  const changedSelectionAbs = changed ? await getChangedFiles(changed, repoRootForChanged) : [];
60362
60360
  const selectionPathsAugmented = changedSelectionAbs.length ? Array.from(/* @__PURE__ */ new Set([...selectionPaths, ...changedSelectionAbs])) : selectionPaths;
60363
60361
  const selectionSpecifiedAugmented = Boolean(selectionSpecified || changedSelectionAbs.length > 0);
60364
- console.info(
60365
- `Selection \u2192 specified=${selectionSpecifiedAugmented} paths=${selectionPathsAugmented.length}`
60366
- );
60367
60362
  const { jest } = argsForDiscovery(["run"], jestArgs);
60368
60363
  const selectionLooksLikeTest = selectionPathsAugmented.some(
60369
60364
  (pathText) => /\.(test|spec)\.[tj]sx?$/i.test(pathText) || /(^|\/)tests?\//i.test(pathText)