Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react-server): vitest integration #49

Merged
merged 5 commits into from Apr 25, 2024
Merged

feat(react-server): vitest integration #49

merged 5 commits into from Apr 25, 2024

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Apr 25, 2024

The idea is to treat test runner (test file) as react client brower and render rsc stream on main vite process.
This obviously lacks test isolation and probably more (e.g. mock?, test watch?), but at least this exercises Vite 6 features.

image

todo

  • magic $__global is not available in test runner, so need to proxy rsc stream via virtual module? (no test isolation anymore...)
  • helper
  • demo

@hi-ogawa hi-ogawa marked this pull request as ready for review April 25, 2024 06:40
@hi-ogawa hi-ogawa merged commit 9be3e6d into main Apr 25, 2024
1 check passed
@hi-ogawa hi-ogawa deleted the feat-vitest-rsc branch April 25, 2024 09:10
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.

None yet

1 participant