Skip to content

test: add tests for parse-basic-frontmatter#961

Merged
danielroe merged 1 commit intomainfrom
jg/test-backmatter-in-the-oval
Feb 5, 2026
Merged

test: add tests for parse-basic-frontmatter#961
danielroe merged 1 commit intomainfrom
jg/test-backmatter-in-the-oval

Conversation

@43081j
Copy link
Copy Markdown
Contributor

@43081j 43081j commented Feb 4, 2026

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 4, 2026 6:47pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 4, 2026 6:47pm
npmx-lunaria Ignored Ignored Feb 4, 2026 6:47pm

Request Review

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 4, 2026

📝 Walkthrough

Walkthrough

This change strengthens the type annotations in the parse-basic-frontmatter utility function by improving the typing of the reduce accumulator, replacing an explicit cast with a more direct generic type parameter. Simultaneously, a comprehensive unit test suite is introduced, covering the function's parsing behaviour across multiple scenarios including edge cases such as empty input, various data types, array handling, quoted values, and malformed entries.

🚥 Pre-merge checks | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request has no description provided by the author, making it impossible to assess whether any description relates to the changeset. The author should add a pull request description explaining the purpose of the changes, even if brief. The title suggests adding tests for parse-basic-frontmatter, but a description would clarify the motivation and scope.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jg/test-backmatter-in-the-oval

Comment @coderabbitai help to get the list of available commands and usage tips.

@danielroe danielroe added this pull request to the merge queue Feb 5, 2026
Merged via the queue into main with commit e54df82 Feb 5, 2026
19 checks passed
@danielroe danielroe deleted the jg/test-backmatter-in-the-oval branch February 5, 2026 01:05
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