-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Always builds bundle in tests #394
Comments
This is definitely a bug that needs fixing. |
@UberMouse yeah that's weird, there is a check for this. Thinking we might fix this with the next release. |
@jbhatab did you find the cause of this one? |
yeah we fixed it last weekend |
@robwise what's the PR? |
@justin808 I've upgraded to 6.0.0-rc.1 per your advice in #416 and it doesn't seem to have solved this issue for me. I think I configured the upgrade correctly, but I'm not positive. I've run my test suite three times on 5.2 and 6.0.0-rc.1 and it averaged 42 seconds on 5.2 and 44 seconds on 6.0.0-rc.1 with webpack running with the My 6.0.0 upgrade branch https://github.com/DigitalNZ/supplejack_website/tree/tl/react-refactor-6.0.0 |
You've got this:
But you also have:
So you're having the test check look at client-bundle.js, but your webpack config builds vendor-bundle.js and app-bundle.js. |
I'll re-open this ticket if there's evidence the issue is not yet fixed with v6. |
Ah I figured it would be something silly like that. That seems to have solved it. Thanks! |
Hi,
I've installed React on Rails into my project with the generator and it's been working great but now that I'm writing some integration tests with capybara I'm running into an issue where the client-bundle is rebuilt every time I run the test regardless of whether I've made any changes. I have the webpack server running with
-w
so it automatically rebuilds but the test helpers seem to think the bundle is out of date regardless.Every time I run my tests I get something like this
It doesn't seem like it does a full compilation because it finishes faster than if I just start up webpack, but it's still quite slow (so it very well could be, I haven't actually timed the compile times). Any ideas?
Cheers
The text was updated successfully, but these errors were encountered: