@hublo/sentinel 1.4.0 → 1.4.1
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-GRK2KRFI.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveContext
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-DYJ6J43A.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-57H7GK5B.js");
|
|
149
149
|
const outcomes = modules.flatMap(
|
|
150
150
|
(module) => validateModuleTests(module.name, module.root)
|
|
151
151
|
);
|
|
@@ -1117,6 +1117,9 @@ var RUNTIME_RENAMES = /* @__PURE__ */ new Set([
|
|
|
1117
1117
|
"useFakeTimers",
|
|
1118
1118
|
"useRealTimers"
|
|
1119
1119
|
]);
|
|
1120
|
+
var MEMBER_RENAMES = {
|
|
1121
|
+
dontMock: "doUnmock"
|
|
1122
|
+
};
|
|
1120
1123
|
var TYPE_RENAMES = {
|
|
1121
1124
|
Mock: "Mock",
|
|
1122
1125
|
MockedClass: "MockedClass",
|
|
@@ -1149,6 +1152,11 @@ function valueEdit(node, source, outcome) {
|
|
|
1149
1152
|
outcome.rewritten++;
|
|
1150
1153
|
return { start: object.start, end: object.end, text: "vi" };
|
|
1151
1154
|
}
|
|
1155
|
+
const renamed = MEMBER_RENAMES[member];
|
|
1156
|
+
if (renamed !== void 0) {
|
|
1157
|
+
outcome.rewritten++;
|
|
1158
|
+
return { start: node.start, end: node.end, text: `vi.${renamed}` };
|
|
1159
|
+
}
|
|
1152
1160
|
if (OWNED_BY_A_LATER_PASS.has(member)) return void 0;
|
|
1153
1161
|
outcome.unhandled.push({
|
|
1154
1162
|
member: `jest.${member}`,
|
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-GRK2KRFI.js";
|
|
10
10
|
import {
|
|
11
11
|
BaseAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DYJ6J43A.js";
|
|
13
13
|
import "./chunk-O7REVMOC.js";
|
|
14
14
|
import "./chunk-QXFCZON7.js";
|
|
15
15
|
import "./chunk-KMKQDGI6.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
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",
|