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 +5 -8
- package/dist/cli.cjs.map +2 -2
- package/dist/index.js +5 -8
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
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
|
}
|
|
@@ -61928,9 +61928,6 @@ var program = async () => {
|
|
|
61928
61928
|
const changedSelectionAbs = changed ? await getChangedFiles(changed, repoRootForChanged) : [];
|
|
61929
61929
|
const selectionPathsAugmented = changedSelectionAbs.length ? Array.from(/* @__PURE__ */ new Set([...selectionPaths, ...changedSelectionAbs])) : selectionPaths;
|
|
61930
61930
|
const selectionSpecifiedAugmented = Boolean(selectionSpecified || changedSelectionAbs.length > 0);
|
|
61931
|
-
console.info(
|
|
61932
|
-
`Selection \u2192 specified=${selectionSpecifiedAugmented} paths=${selectionPathsAugmented.length}`
|
|
61933
|
-
);
|
|
61934
61931
|
const { jest } = argsForDiscovery(["run"], jestArgs);
|
|
61935
61932
|
const selectionLooksLikeTest = selectionPathsAugmented.some(
|
|
61936
61933
|
(pathText) => /\.(test|spec)\.[tj]sx?$/i.test(pathText) || /(^|\/)tests?\//i.test(pathText)
|