@hublo/sentinel 1.4.0-alpha.37 → 1.4.0-alpha.38
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/bin/sentinel.js
CHANGED
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
palette,
|
|
16
16
|
registerAdapters,
|
|
17
17
|
resolve
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-NFFT5AW4.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveContext
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-GSMCRJR3.js";
|
|
22
22
|
import "../chunk-O7REVMOC.js";
|
|
23
23
|
import "../chunk-QXFCZON7.js";
|
|
24
24
|
import {
|
|
@@ -145,7 +145,7 @@ async function runValidate(ctx) {
|
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
147
|
if (!ctx.targets.includes("test")) return 1;
|
|
148
|
-
const { validateModuleTests } = await import("../validate-
|
|
148
|
+
const { validateModuleTests } = await import("../validate-IPHMKZY6.js");
|
|
149
149
|
const outcomes = modules.flatMap(
|
|
150
150
|
(module) => validateModuleTests(module.name, module.root)
|
|
151
151
|
);
|
|
@@ -1003,7 +1003,7 @@ var TYPE_RENAMES = {
|
|
|
1003
1003
|
var NAMED_RULE = {
|
|
1004
1004
|
requireActual: `await vi.importActual(...), which makes the surrounding factory async`,
|
|
1005
1005
|
requireMock: `await vi.importMock(...), which makes the surrounding factory async`,
|
|
1006
|
-
setTimeout: `vi.setConfig({ testTimeout: ... }), which is configuration rather than a call`
|
|
1006
|
+
setTimeout: `vi.setConfig({ testTimeout: ..., hookTimeout: ... }), which is configuration rather than a call, and BOTH because jest's one budget covers hooks too`
|
|
1007
1007
|
};
|
|
1008
1008
|
var OWNED_BY_A_LATER_PASS = /* @__PURE__ */ new Set(["isolateModules", "isolateModulesAsync"]);
|
|
1009
1009
|
function lineOf(source, offset) {
|
|
@@ -2308,10 +2308,11 @@ function applyNamedRules(source, program, fileName = "") {
|
|
|
2308
2308
|
return;
|
|
2309
2309
|
}
|
|
2310
2310
|
if (member === "setTimeout") {
|
|
2311
|
+
const budget = argumentText(source, node);
|
|
2311
2312
|
edits.push({
|
|
2312
2313
|
start: node.start,
|
|
2313
2314
|
end: node.end,
|
|
2314
|
-
text: `vi.setConfig({ testTimeout: ${
|
|
2315
|
+
text: `vi.setConfig({ testTimeout: ${budget}, hookTimeout: ${budget} })`
|
|
2315
2316
|
});
|
|
2316
2317
|
applied.add("jest.setTimeout");
|
|
2317
2318
|
}
|
|
@@ -3795,7 +3796,9 @@ function concurrencyBlock(cwd, reading, target) {
|
|
|
3795
3796
|
return "";
|
|
3796
3797
|
}
|
|
3797
3798
|
function timeoutBlock(reading) {
|
|
3798
|
-
|
|
3799
|
+
if (reading.testTimeout === void 0) return "";
|
|
3800
|
+
return ` testTimeout: ${reading.testTimeout},
|
|
3801
|
+
hookTimeout: ${reading.testTimeout},`;
|
|
3799
3802
|
}
|
|
3800
3803
|
function globalSetupBlock(reading) {
|
|
3801
3804
|
if (reading.globalSetup === void 0) return "";
|
package/dist/index.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
registerAdapters,
|
|
7
7
|
resolve,
|
|
8
8
|
setDefaultRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NFFT5AW4.js";
|
|
10
10
|
import {
|
|
11
11
|
BaseAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GSMCRJR3.js";
|
|
13
13
|
import "./chunk-O7REVMOC.js";
|
|
14
14
|
import "./chunk-QXFCZON7.js";
|
|
15
15
|
import "./chunk-NW6UHNYX.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.4.0-alpha.
|
|
3
|
+
"version": "1.4.0-alpha.38",
|
|
4
4
|
"description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|