Semver check tests: pin the broken-manifest failure text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-02 18:35:27 +02:00
commit 84a34b8735

View file

@ -522,7 +522,7 @@ test("measured: a missing or unrestorable tool fails closed and says why", () =>
writeFileSync(join(bare, "dotnet-tools.json"), "{ this is not a manifest");
const brokenManifest = runCheckerExpectFailure(dir, measuredArgs(dir, "1.0.1", [oldWidget()]), { script });
assert.match(brokenManifest, /could not be measured/);
assert.match(brokenManifest, /dotnet tool restore failed: S/);
assert.match(brokenManifest, /dotnet tool restore failed: Json parsing error/);
} finally {
rmSync(bare, { recursive: true, force: true });
}