Skip to content

Removing snapshot test#38124

Merged
pelikhan merged 1 commit into
mainfrom
copilot/remove-snapshot-test
Jun 9, 2026
Merged

Removing snapshot test#38124
pelikhan merged 1 commit into
mainfrom
copilot/remove-snapshot-test

Conversation

Copilot AI commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Pull request created by AI Agent

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review June 9, 2026 14:02
Copilot AI review requested due to automatic review settings June 9, 2026 14:02
@pelikhan pelikhan merged commit ed760b5 into main Jun 9, 2026
@pelikhan pelikhan deleted the copilot/remove-snapshot-test branch June 9, 2026 14:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes a snapshot-based Vitest case from the validate_secrets JavaScript test suite.

Changes:

  • Deleted the generateMarkdownReport matches snapshot test from validate_secrets.test.cjs.
Show a summary per file
File Description
actions/setup/js/validate_secrets.test.cjs Removes the only snapshot-based test for generateMarkdownReport.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines 287 to 291
expect(report).toContain("(2 tests)");
expect(report).toContain("GitHub REST API");
expect(report).toContain("GitHub GraphQL API");
});

it("generateMarkdownReport matches snapshot", () => {
vi.useFakeTimers();
vi.setSystemTime(new Date("2024-01-15T12:00:00.000Z"));
try {
const results = [
{ secret: "GH_AW_GITHUB_TOKEN", test: "REST API", status: "failure", message: "401" },
{ secret: "ANTHROPIC_API_KEY", test: "Anthropic", status: "not_set", message: "not set" },
{ secret: "BRAVE_API_KEY", test: "Brave", status: "success", message: "OK" },
];
expect(generateMarkdownReport(results)).toMatchSnapshot();
} finally {
vi.useRealTimers();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants