Skip to content

Conversation

Xvezda
Copy link
Owner

@Xvezda Xvezda commented Jun 23, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 23, 2025 20:48
@Xvezda Xvezda merged commit 733017e into master Jun 23, 2025
1 check passed
@Xvezda Xvezda deleted the feature/tests branch June 23, 2025 20:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds new test cases to verify throwing behavior in narrowed getter/setter contexts for two ESLint rules.

  • Introduces tests for no-undocumented-throws to ensure missing @throws tags are reported in narrowed branches.
  • Adds tests for check-throws-tag-type to validate mismatched @throws annotations in similar scenarios.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/rules/no-undocumented-throws.test.js New test block for getter/setter narrowing checks
tests/rules/check-throws-tag-type.test.js New test block for throw type mismatch checks

},
{
code: `
class TrueGetterError extends Error {}
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

[nitpick] The error class and foo setup are duplicated in multiple test files; consider extracting shared fixtures or helper functions to reduce repetition and improve maintainability.

Copilot uses AI. Check for mistakes.

},
{
code: `
class TrueGetterError extends Error {}
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

[nitpick] This block duplicates the same class definitions and foo function from another test; refactoring into a shared helper would make the tests easier to maintain.

Copilot uses AI. Check for mistakes.

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.

1 participant