headlamp 0.1.21 → 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
  }
@@ -60359,9 +60359,6 @@ var program = async () => {
60359
60359
  const changedSelectionAbs = changed ? await getChangedFiles(changed, repoRootForChanged) : [];
60360
60360
  const selectionPathsAugmented = changedSelectionAbs.length ? Array.from(/* @__PURE__ */ new Set([...selectionPaths, ...changedSelectionAbs])) : selectionPaths;
60361
60361
  const selectionSpecifiedAugmented = Boolean(selectionSpecified || changedSelectionAbs.length > 0);
60362
- console.info(
60363
- `Selection \u2192 specified=${selectionSpecifiedAugmented} paths=${selectionPathsAugmented.length}`
60364
- );
60365
60362
  const { jest } = argsForDiscovery(["run"], jestArgs);
60366
60363
  const selectionLooksLikeTest = selectionPathsAugmented.some(
60367
60364
  (pathText) => /\.(test|spec)\.[tj]sx?$/i.test(pathText) || /(^|\/)tests?\//i.test(pathText)