Visitar URL original
chore: fix nth-of-type typo in nested style tag fixture by florian-lefebvre · Pull Request #497 · withastro/prettier-plugin-astro · GitHub
Skip to content

chore: fix nth-of-type typo in nested style tag fixture - #497

Merged
florian-lefebvre merged 1 commit into
mainfrom
florian-lefebvre/Fix-test-typo
Oct 16, 2026
Merged

florian-lefebvre merged 1 commit into
mainfrom
florian-lefebvre/Fix-test-typo

Conversation

@florian-lefebvre

Copy link
Copy Markdown
Member

Changes

Correct a typo in the format-nested-style-tag-content style fixture: &:nth-of-type(ln) becomes &:nth-of-type(1n).

The change updates both fixture files:

 test/fixtures/styles/format-nested-style-tag-content/
-├── input.astro      &:nth-of-type(ln)
-└── output.astro     &:nth-of-type(ln)
+├── input.astro      &:nth-of-type(1n)
+└── output.astro     &:nth-of-type(1n)

The fixture test formats input.astro and compares the result with output.astro, so both files must change together. Updating only output.astro fails test/tests/styles.test.ts.

Testing

Ran pnpm build and pnpm vitest run test/tests/styles.test.ts: 11 passed.

To confirm both files are required, reverting only input.astro fails styles/format-nested-style-tag-content:

- Expected: &:nth-of-type(1n) {
+ Received: &:nth-of-type(ln) {

No new tests. This change corrects an existing fixture.

Docs

No docs. This change touches a test fixture only.

AI was used to make this change.

Correct `&:nth-of-type(ln)` to `&:nth-of-type(1n)` in both the input and output of the format-nested-style-tag-content style fixture. The fixture test formats the input and compares it with the output, so both files change together.

@Princesseuh Princesseuh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sure, why not

@florian-lefebvre

Copy link
Copy Markdown
Member Author

I spotted it while improving Biome's Astro support, that's why :)

@florian-lefebvre
florian-lefebvre merged commit c83bfed into main Oct 16, 2026
6 checks passed
@florian-lefebvre
florian-lefebvre deleted the florian-lefebvre/Fix-test-typo branch October 16, 2026 07:26
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.

2 participants