-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Rename references in tests from app/packs to app/javascript #275
Conversation
@ahangarha FYI - I think you've tried to do something similar in #274 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -188,7 +188,7 @@ Thus ProvidePlugin manages build-time dependencies to global symbols whereas the | |||
|
|||
For instance, with [jQuery](https://jquery.com/): | |||
```diff | |||
// app/packs/entrypoints/application.js | |||
// app/javascript/entrypoints/application.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes more sense, however, I've tended to keep the older packs
rather than entrypoints
term. Both work.
@@ -133,7 +133,7 @@ def preload_pack_asset(name, **options) | |||
# Creates link tags that reference the css chunks from entrypoints when using split chunks API, | |||
# as compiled by webpack per the entries list in package/environments/base.js. | |||
# By default, this list is auto-generated to match everything in | |||
# app/packs/entrypoints/*.js and all the dependent chunks. In production mode, the digested reference is automatically looked up. | |||
# app/javascript/entrypoints/*.js and all the dependent chunks. In production mode, the digested reference is automatically looked up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation should suggest the key or keys used from the webpacker.yml file that configure this.
Summary
Our default entry paths is
app/javascript
but tests are still usingapp/packs
in various places. Noticed this causing failures locally when runningyarn test
This should unify the handling throughout.
Pull Request checklist