-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Running tests doesn't set NODE_ENV=test #353
Comments
@RobinClowers You would need to compile packs before running tests - |
Yeah, that's exactly right, and |
@RobinClowers Yepp. There are two PR's pending to address some of these things - #341 and #292 |
@gauravtiwari is there an easy way to use the dev server for tests locally, but use precompiled assets on CI? |
@RobinClowers What issues are you facing? You can run dev server locally in a separate terminal and then run tests, which would work just fine as it will use dev server to serve assets. For CI, you can pre-compile |
@gauravtiwari oh I see, for some reason I thought it would only use the test assets, that does indeed work. Thanks! |
When I run tests with
bin/rails test
, it fails unless I'm running the webpack dev server. Is this expected?The text was updated successfully, but these errors were encountered: