Skip to content

Conversation

azu
Copy link
Member

@azu azu commented Jun 29, 2025

add test case for config loader

@azu azu added the Type: Testing Adding missing tests or correcting existing tests label Jun 29, 2025
@azu azu marked this pull request as ready for review June 29, 2025 12:42
@Copilot Copilot AI review requested due to automatic review settings June 29, 2025 12:42
@azu azu enabled auto-merge (squash) June 29, 2025 12:42
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

This PR adds a test scenario for when a user explicitly enables a preset rule (c1) in the config loader.

  • Input fixture now includes "c1": true under rules.
  • Module fixture exposes two sub-rules (c1, c2) in the preset.
  • Snapshot updated to expect two entries for those rules with preserved severities.

Reviewed Changes

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

File Description
packages/@textlint/config-loader/test/snapshots/preset-severity-preservation/input.json Added "c1": true to simulate user-enabling rule
packages/@textlint/config-loader/test/modules_fixtures/textlint-rule-preset-abc-with-severity/index.js Exposed c1 and c2 in preset rules and configs
packages/@textlint/config-loader/test/snapshots/preset-severity-preservation/output.json Updated snapshot to include c1 and c2 entries

@azu azu merged commit c7d57ef into master Jun 29, 2025
17 checks passed
@azu azu deleted the update-test branch June 29, 2025 12:46
@github-actions github-actions bot mentioned this pull request Jun 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Testing Adding missing tests or correcting existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant