fix(test): restore bundled loader coverage

This commit is contained in:
Peter Steinberger
2026-04-06 18:14:37 +01:00
parent 96b39e01b4
commit 348cd6b17a
15 changed files with 207 additions and 58 deletions

View File

@@ -77,13 +77,26 @@ describe("local-heavy-check-runtime", () => {
it("serializes local oxlint runs onto one thread on constrained hosts", () => {
const { args } = applyLocalOxlintPolicy([], makeEnv(), CONSTRAINED_HOST);
expect(args).toEqual(["--type-aware", "--tsconfig", "tsconfig.oxlint.json", "--threads=1"]);
expect(args).toEqual([
"--type-aware",
"--tsconfig",
"tsconfig.oxlint.json",
"--report-unused-disable-directives-severity",
"error",
"--threads=1",
]);
});
it("keeps local oxlint parallel on roomy hosts in auto mode", () => {
const { args } = applyLocalOxlintPolicy([], makeEnv(), ROOMY_HOST);
expect(args).toEqual(["--type-aware", "--tsconfig", "tsconfig.oxlint.json"]);
expect(args).toEqual([
"--type-aware",
"--tsconfig",
"tsconfig.oxlint.json",
"--report-unused-disable-directives-severity",
"error",
]);
});
it("reclaims stale local heavy-check locks from dead pids", () => {