diff --git a/.github/workflows/README-staging-lint-checks.md b/.github/workflows/README-staging-lint-checks.md index e6ac71e7..b79d28e6 100644 --- a/.github/workflows/README-staging-lint-checks.md +++ b/.github/workflows/README-staging-lint-checks.md @@ -78,10 +78,10 @@ workflow behavior based on testing requirements. ### Labels -| Label | Purpose | -|---|---| -| `test-` | Specifies a rule to validate (e.g., `test-PostResponseCodes`) | -| `errors-acknowledged` | Confirms the PR author has reviewed validation errors | +| Label | Purpose | +| --------------------- | ------------------------------------------------------------- | +| `test-` | Specifies a rule to validate (e.g., `test-PostResponseCodes`) | +| `errors-acknowledged` | Confirms the PR author has reviewed validation errors | ## Debugging and Troubleshooting diff --git a/.github/workflows/test/extract-rule-names.test.js b/.github/workflows/test/extract-rule-names.test.js index 8ccaa3d0..83716dc5 100644 --- a/.github/workflows/test/extract-rule-names.test.js +++ b/.github/workflows/test/extract-rule-names.test.js @@ -102,7 +102,7 @@ describe("extract-rule-names", () => { expect(result).toEqual(expected); }); }); - + describe("checkBlockingConditions", () => { function mockCore() { return { @@ -233,7 +233,10 @@ describe("extract-rule-names", () => { describe("detectRuleChanges", () => { test("returns true when rule files are changed", async () => { const mockPaginate = vi.fn().mockResolvedValue([ - { filename: "packages/rulesets/src/spectral/functions/post-response-codes.ts", status: "modified" }, + { + filename: "packages/rulesets/src/spectral/functions/post-response-codes.ts", + status: "modified", + }, { filename: "README.md", status: "modified" }, ]); const github = { @@ -286,9 +289,11 @@ describe("extract-rule-names", () => { }); test("ignores deleted rule files", async () => { - const mockPaginate = vi.fn().mockResolvedValue([ - { filename: "packages/rulesets/src/spectral/az-arm.ts", status: "removed" }, - ]); + const mockPaginate = vi + .fn() + .mockResolvedValue([ + { filename: "packages/rulesets/src/spectral/az-arm.ts", status: "removed" }, + ]); const github = { paginate: mockPaginate, rest: { pulls: { listFiles: "listFiles" } },