Skip to content

Conversation

ralfhandl
Copy link
Contributor

The yargs package was used in a (now?) unconventional way in script md2html.js which no longer works with version 18 of yargs. Switched to more conventional use following the yargs documentation.

Increased vitest timeout for tests to avoid occasional problems.

  • schema changes are included in this pull request
  • schema changes are needed for this pull request but not done yet
  • no schema changes are needed for this pull request

@ralfhandl ralfhandl requested review from a team as code owners May 29, 2025 09:19
@ralfhandl ralfhandl added Housekeeping javascript Pull requests that update Javascript code labels May 29, 2025
@ralfhandl ralfhandl requested a review from Copilot May 29, 2025 09:19
Copy link

@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 updates the conventional use of yargs in md2html.js to ensure compatibility with version 18 and increases the test timeout in vitest.config.mjs to handle occasional slow tests.

  • Updated yargs usage in md2html.js by slicing process.argv and using .parse() as per documentation.
  • Increased vitest testTimeout to 10 seconds to mitigate test timing issues.

Reviewed Changes

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

File Description
vitest.config.mjs Added testTimeout for improved test reliability
scripts/md2html/md2html.js Updated yargs usage for compatibility with version 18

@handrews handrews merged commit e1e3f08 into OAI:main May 29, 2025
2 checks passed
@ralfhandl ralfhandl deleted the main-use-yargs-conventionally branch May 29, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Housekeeping javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants