test: tighten assertions and harness coverage

This commit is contained in:
Peter Steinberger
2026-05-08 05:27:57 +01:00
parent f62618f805
commit 9ef37d1907
822 changed files with 8918 additions and 6533 deletions

View File

@@ -110,7 +110,7 @@ describe("git commit resolution", () => {
expect(resolveCommitHash({ moduleUrl: entryModuleUrl })).not.toBe(otherHead);
});
it("prefers live git metadata over stale build info in a real checkout", async () => {
it("prefers live git metadata over stale build info in a real checkout", () => {
const repoHead = execFileSync("git", ["rev-parse", "--short=7", "HEAD"], {
cwd: repoRoot,
encoding: "utf-8",
@@ -175,7 +175,7 @@ describe("git commit resolution", () => {
expect(readPackageJsonCommit.mock.calls.length).toBe(firstCallRequires);
});
it("treats invalid moduleUrl inputs as a fallback hint instead of throwing", async () => {
it("treats invalid moduleUrl inputs as a fallback hint instead of throwing", () => {
const repoHead = execFileSync("git", ["rev-parse", "--short=7", "HEAD"], {
cwd: repoRoot,
encoding: "utf-8",