@hublo/sentinel 1.4.0-alpha.17 → 1.4.0-alpha.18
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
|
@@ -5738,7 +5738,7 @@ function rewriteAssertionReturnValue(source, program) {
|
|
|
5738
5738
|
for (const reading of readings) {
|
|
5739
5739
|
const from = reading.start;
|
|
5740
5740
|
let to = reading.end;
|
|
5741
|
-
while (to < source.length && /[\
|
|
5741
|
+
while (to < source.length && /[ \t;]/.test(source[to])) to += 1;
|
|
5742
5742
|
let head = from;
|
|
5743
5743
|
while (head > 0 && /[ \t]/.test(source[head - 1])) head -= 1;
|
|
5744
5744
|
if (head > 0 && source[head - 1] === "\n") head -= 1;
|
|
@@ -8446,9 +8446,15 @@ function planJestMigration(context, adoption) {
|
|
|
8446
8446
|
`${SPEC_TSCONFIG} now declares \`${VITEST_GLOBAL_TYPES}\` instead of \`jest\`. Without it the module keeps depending on @types/jest and \`jest.Mock\` still resolves, so the migration would look finished while the dependency it cuts is still declared.`
|
|
8447
8447
|
);
|
|
8448
8448
|
}
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8449
|
+
if (readFormatAdoption(context.cwd).configFile !== null) {
|
|
8450
|
+
notes.push(
|
|
8451
|
+
`the files this rewrote were run through this module's own formatter afterwards. Two things needed it: the Vitest type imports land beside the existing ones, and a rewritten call is often SHORTER than the one it replaced, so the line breaks around it are no longer the ones your config would pick. Neither is a defect, and both would have failed your format check.`
|
|
8452
|
+
);
|
|
8453
|
+
} else {
|
|
8454
|
+
notes.push(
|
|
8455
|
+
`this module has no formatter config, so what was written keeps the shape it was written in, and the Vitest type imports sit beside the existing ones rather than in the position your \`import/order\` wants. That rule is classified by a prefix list this package cannot read, so it is left to the tool that owns it: run your module's own lint fixer (\`nx run <module>:lint --fix\` here) and its formatter before committing.`
|
|
8456
|
+
);
|
|
8457
|
+
}
|
|
8452
8458
|
notes.push(
|
|
8453
8459
|
`then run this module's TYPECHECK, not only its tests. The migration rewrites types as well as calls, and a wrong type is invisible to a green suite: measured on a real module, \`--run --test\` passed while \`--run --typescript\` reported ten errors it had not had before.`
|
|
8454
8460
|
);
|
package/dist/index.js
CHANGED
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.18",
|
|
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",
|