Skip to content

Conversation

@fi3ework
Copy link
Member

@fi3ework fi3ework commented Jan 9, 2026

Summary

  • Add 8 comprehensive Rstest examples demonstrating core testing features:
    • mocking - Mock functions, module mocking, spies, and matchers
    • fake-timers - Timer mocking, date simulation, polling tests
    • snapshot - Basic, inline, file, and custom serializer snapshots
    • coverage - Code coverage with Istanbul, thresholds, reporters
    • rslib-adapter - Integration with Rslib config (alias, define inheritance)
    • rsbuild-adapter - Integration with Rsbuild config (alias, define inheritance)
    • browser-rsbuild-vanilla - Browser mode with vanilla DOM testing
    • browser-rsbuild-react - Browser mode with React (render, renderHook, act)
  • Update CI workflow to run test:rstest script
  • Update biome.json to include rstest/** and ignore __snapshots__/**
  • Update AGENTS.md with Rstest example guidelines

@fi3ework fi3ework marked this pull request as ready for review January 10, 2026 10:56
@fi3ework fi3ework merged commit 1f36df7 into rstackjs:main Jan 10, 2026
1 check passed
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.

1 participant