diff --git a/test/scripts/run-oxlint.test.ts b/test/scripts/run-oxlint.test.ts index 03243f5cb5a..354d4d40056 100644 --- a/test/scripts/run-oxlint.test.ts +++ b/test/scripts/run-oxlint.test.ts @@ -20,10 +20,14 @@ describe("run-oxlint", () => { const packageJson = JSON.parse(readFileSync("package.json", "utf8")) as { scripts: Record; }; + const shardedLintRunner = readFileSync("scripts/run-oxlint-shards.mjs", "utf8"); - expect(packageJson.scripts.check).toContain("pnpm lint"); + expect(packageJson.scripts.check).toBe("node scripts/check.mjs"); + expect(packageJson.scripts.lint).toBe("node scripts/run-oxlint-shards.mjs"); expect(packageJson.scripts.check).not.toContain( "node scripts/prepare-extension-package-boundary-artifacts.mjs", ); + expect(shardedLintRunner).toContain("prepare-extension-package-boundary-artifacts.mjs"); + expect(shardedLintRunner).toContain('OPENCLAW_OXLINT_SKIP_PREPARE: "1"'); }); });