Testing
Testing
Section titled “Testing”Rhyolite uses modern testing tools to ensure code quality and reliability across all packages.
How to Run Tests
Section titled “How to Run Tests”Run all tests in the monorepo:
pnpm testRun tests for a specific package:
pnpm --filter <package> testWriting Tests
Section titled “Writing Tests”- Use your preferred test framework (e.g., Vitest, Jest)
- Place tests in a
__tests__ortests/directory - Write clear, focused test cases
Best Practices
Section titled “Best Practices”- Keep tests fast and isolated
- Use CI to run tests on every PR