Skip to content

Conversation

@Sam-61s
Copy link
Contributor

@Sam-61s Sam-61s commented Jan 10, 2026

The README currently suggests running npm test -- --watch, but the test script
hard-disables watch mode (vitest --watch=false), which causes Vitest to error
due to conflicting --watch flags.

This PR updates the documentation to recommend using npx vitest --watch
instead, which works correctly without changing existing scripts or CI behavior.

with npm test -- --watch
Screenshot 2026-01-10 164526

with npx vitest --watch
Screenshot 2026-01-10 165124

Copy link
Collaborator

@jdesrosiers jdesrosiers left a comment

Choose a reason for hiding this comment

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

Thanks for noticing this. I think this changed with vitest 4 and I didn't notice.

However, this is the wrong fix. You need to update the "test" script in package.json. It should be vitest run.

@Sam-61s
Copy link
Contributor Author

Sam-61s commented Jan 11, 2026

I’ve updated the test script to vitest run which now aligned with the README instructions.

Copy link
Collaborator

@jdesrosiers jdesrosiers left a comment

Choose a reason for hiding this comment

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

You forgot to revert the changes to the README that aren't needed anymore.

@Sam-61s
Copy link
Contributor Author

Sam-61s commented Jan 11, 2026

Sorry for that, I updated the test script but forgot to revert the changes in README.
Now everthing is fixed..

@jdesrosiers jdesrosiers merged commit b1b1ebd into hyperjump-io:main Jan 12, 2026
2 checks passed
jdesrosiers pushed a commit that referenced this pull request Jan 19, 2026
* fix: incorrect test watch mode instruction is fixed

* test script is updated with vitest run

* README.md file is reverted
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