bin/rails assets:clobber will clear out any precompiled assets in your Rails app.
When precompiling assets, it is good to note that
If precompiled assets are available, they will be served — even if they no longer match the original (uncompiled) assets, even on the development server.
After precompiling, especially in your local development environment, your test suite will pick up the precompiled assets. Outdated assets in your test suite can cause unexpected behaviours.
- Should we add
rails assets:clobberbefore running our test suite?