Skip to content

How to run system specs without recompiling assets every-time #136

Answered by ElMassimo
templeman15 asked this question in Q&A
Discussion options

You must be logged in to vote

Using a Vite dev server when running tests is now supported out of the box, starting from vite_ruby@3.0.2.

Added a test in the example Rails app that rewrites files and verifies that HMR is working.

@templeman15 Run bin/vite upgrade, give it a try, and let me know how it goes 😃


Related: Found that sourcemaps were generated when building in test mode, which is unnecessary and would really slow down the build in an app like the one you described. Running bin/vite upgrade should also upgrade to vite-plugin-ruby@3.0.3 which includes this fix.

Replies: 3 comments 18 replies

Comment options

You must be logged in to vote
8 replies
@templeman15
Comment options

@ElMassimo
Comment options

@templeman15
Comment options

@ElMassimo
Comment options

@templeman15
Comment options

Comment options

You must be logged in to vote
7 replies
@templeman15
Comment options

@ElMassimo
Comment options

@templeman15
Comment options

@templeman15
Comment options

@ElMassimo
Comment options

Answer selected by ElMassimo
Comment options

You must be logged in to vote
3 replies
@ElMassimo
Comment options

@zealot128
Comment options

@ElMassimo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants