-
Notifications
You must be signed in to change notification settings - Fork 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
switch us over to React 16 #2884
Conversation
3d3dca8
to
4c0e779
Compare
Whoop, a little bit more for me to fix on the shortcut editor. |
4c0e779
to
021aab2
Compare
Conversion complete! |
I am pretty darn sure the test failures are from ye ole phantomjs setup, and that I'm using features that are not supported on the old JS engine we use for testing. Should I go down the rabbit hole of modernizing the test runner? 🤔 |
+1; Sorry about the test-runner mess; if it's not too hard that would be great; otherwise just mark the test as knownfail/skip and open an issue to fix it later; Thanks for doing this; it's not easy to do cleanup work. ❤️❤️❤️ |
@@ -41,6 +38,8 @@ | |||
bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min', | |||
'jquery-ui': 'components/jquery-ui/ui/minified/jquery-ui.min', | |||
moment: 'components/moment/min/moment-with-locales', | |||
react: 'components/react/react.production.min', |
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.
Is it possible to optionally use the development version of react if the notebook is built using the developer tools instructions?
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.
I wondered that too, didn't want to go too far down the rabbit hole in lieu of other yaks that wanted shaving.
I'm not 100% comfortable with my understanding of the testing setup as it is… but I'm happy to work on modernising it if someone can point me in the right direction. |
I think even if I adapt the code that I changed in here, it's probably Either I stick in yet another shim for phantom or I go down the rabbit hole of adapting the tests. |
Yeah, happily. I'll get something started following on with what I've started tinkering with in #2891. |
@rgbkrk What do you think of doing that as a temporary means to shipping the VDOM renderer? |
Nice!!! |
I... Think it would mean all the js tests would be disabled. |
@Carreau Would that effectively disable all of our JS tests? |
Yes. Hence why I want to overhaul the testing setup. |
What's the next move on this? |
I've been a bit stuck, hoping to switch out the testing framework (#2891). |
Just skip the test, we have users to test the UI in depth. :-) |
021aab2
to
f898bcb
Compare
Rebased just in case, I'll see if skipping tests is feasible (I... kind of think it's all of them...) |
There's a lot more to either skip or rewrite. |
6e74f1f
to
4beeea9
Compare
Does it seem like we could include |
I've opened #3321 to start a switch towards Selenium - would that get around the issues you're having with the PhantomJS tests? |
It sure sounds like it would. @rgbkrk? |
Yeah, I think so! Selenium is pretty well up to date and well-backed. |
Closing since we're using react 16 now. Cheers! |
Wait what?! OMG that's great! |
This switches all our use of
preact
toReact
, which also allows us to pullReact
andReactDOM
in via bower and use as a UMD module.Since all our supported browsers are modern, I've used an actual
class
here as well as arrow functions (where appropriate, to replace use ofthat = this
).With this in place, js code can now load
react
andreact-dom
explicitly: