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

README clarify javascript:build may also need to be run if test:prepare is not defined #54

Merged
merged 1 commit into from
Jan 16, 2022

Conversation

ajaynomics
Copy link
Contributor

@ajaynomics ajaynomics commented Dec 19, 2021

When a user invokes rails test or uses a test framework that does not define a test:prepare Rake task, css:build must be run manually. This is already documented in the README.

If jsbundling-rails is also being used, javascript:build may also need to be run (ie, esbuild + tailwind).

If either css:build or javascript:build is required and is not run, minitest reports the same error:

ActionView::Template::Error: The asset "application.css" is not present in the asset pipeline.

This PR aims to improve the documentation to avoid others chasing their tail for a few hours like I did.

@dhh dhh merged commit 124665a into rails:main Jan 16, 2022
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

2 participants