Skip to content

Removed webpacker:compile step from scaffold test as it is not required#36778

Merged
rafaelfranca merged 1 commit intorails:masterfrom
abhaynikam:remove-unwanted-javascript-compile-from-test
Jul 26, 2019
Merged

Removed webpacker:compile step from scaffold test as it is not required#36778
rafaelfranca merged 1 commit intorails:masterfrom
abhaynikam:remove-unwanted-javascript-compile-from-test

Conversation

@abhaynikam
Copy link
Contributor

When I was working on adding webpacker to the Rails engines, my test cases were consistently failing and I had no idea what was wrong. So I checked how Rails app with webpacker solves the scaffold test scenario.

I found that when the Rails app is build using build_app it compiles the assets here(https://github.com/rails/rails/blob/master/railties/test/isolation/abstract_unit.rb#L519-L526)

This webpacker:compile was an unnecessary step but since these are test case I was not sure If I should raise PR for change. On my local test cases ran 2sec faster 😊 . Please close this PR if the change is not needed.

…ed and assets are already precompiled in build_app step
@rails-bot rails-bot bot added the railties label Jul 26, 2019
@rafaelfranca rafaelfranca merged commit d937e1f into rails:master Jul 26, 2019
rafaelfranca added a commit that referenced this pull request Jul 26, 2019
…compile-from-test

Removed webpacker:compile step from scaffold test as it is not required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants