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/index.js CHANGED
@@ -53581,9 +53581,12 @@ var init_args = __esm({
53581
53581
  ),
53582
53582
  rule.withLookahead(
53583
53583
  "--testPathPattern",
53584
- (flag, lookahead) => step([ActionBuilders.jestArgs([flag, lookahead])], true)
53584
+ (flag, lookahead) => step([ActionBuilders.jestArgs([flag, lookahead]), ActionBuilders.selectionHint()], true)
53585
+ ),
53586
+ rule.startsWith(
53587
+ "--testPathPattern=",
53588
+ (value2) => step([ActionBuilders.jestArg(value2), ActionBuilders.selectionHint()])
53585
53589
  ),
53586
- rule.startsWith("--testPathPattern=", (value2) => step([ActionBuilders.jestArg(value2)])),
53587
53590
  rule.inSet(
53588
53591
  (env) => env.jestFlags,
53589
53592
  (value2) => step([ActionBuilders.jestArg(value2)])
@@ -58047,9 +58050,6 @@ var decideShouldRunJest = (vitestFiles, jestFiles, opts) => {
58047
58050
  const looksLikePath = (pathText) => /[\\/]/.test(pathText) || /\.(m?[tj]sx?)$/i.test(pathText);
58048
58051
  const anyTestSelected = (opts.selectionPaths ?? []).some(looksLikeTestPath);
58049
58052
  const anyPathSelected = (opts.selectionPaths ?? []).some(looksLikePath);
58050
- if (!opts.selectionSpecified) {
58051
- return { shouldRunJest: false, share, reason: "broad_run_guard" };
58052
- }
58053
58053
  if (jestFiles.length === 0) {
58054
58054
  return { shouldRunJest: false, share, reason: "no_jest_tests" };
58055
58055
  }
@@ -61075,8 +61075,7 @@ module.exports = class BridgeEnv extends NodeEnvironment {
61075
61075
  const dbgPath = process.env.JEST_BRIDGE_DEBUG_PATH;
61076
61076
  this._dbg = (msg) => {
61077
61077
  try {
61078
- if (process.env.JEST_BRIDGE_DEBUG && dbgPath) fs.appendFileSync(dbgPath, String(msg) + '
61079
- ', 'utf8');
61078
+ if (process.env.JEST_BRIDGE_DEBUG && dbgPath) fs.appendFileSync(dbgPath, String(msg) + '\\n', 'utf8');
61080
61079
  } catch {}
61081
61080
  };
61082
61081
  } catch {}
@@ -61107,8 +61106,7 @@ module.exports = class BridgeEnv extends NodeEnvironment {
61107
61106
  } catch {
61108
61107
  line += JSON.stringify({ type: String(payload && payload.type || 'unknown') });
61109
61108
  }
61110
- stderr.write(line + '
61111
- ');
61109
+ stderr.write(line + '\\n');
61112
61110
  } catch {}
61113
61111
  };
61114
61112
  // Expose to class methods (e.g., handleTestEvent). Also keep a safe fallback.
@@ -61930,9 +61928,6 @@ var program = async () => {
61930
61928
  const changedSelectionAbs = changed ? await getChangedFiles(changed, repoRootForChanged) : [];
61931
61929
  const selectionPathsAugmented = changedSelectionAbs.length ? Array.from(/* @__PURE__ */ new Set([...selectionPaths, ...changedSelectionAbs])) : selectionPaths;
61932
61930
  const selectionSpecifiedAugmented = Boolean(selectionSpecified || changedSelectionAbs.length > 0);
61933
- console.info(
61934
- `Selection \u2192 specified=${selectionSpecifiedAugmented} paths=${selectionPathsAugmented.length}`
61935
- );
61936
61931
  const { jest } = argsForDiscovery(["run"], jestArgs);
61937
61932
  const selectionLooksLikeTest = selectionPathsAugmented.some(
61938
61933
  (pathText) => /\.(test|spec)\.[tj]sx?$/i.test(pathText) || /(^|\/)tests?\//i.test(pathText)