Echo JS 0.11.0

<~>

MaxArt comments

MaxArt 3385 days ago. link 3 points ▲ ▼
I appreciate the effort, but with all the extra burden isn't it better to use React.createElement directly?
MaxArt 3398 days ago. link 3 points ▲ ▼
I'm pretty sure that has already been posted a while ago...
MaxArt 3404 days ago. link 1 point ▲ ▼
It's an odd situation here.
While React - the library for which Jest was conceived - is basically just a virtual DOM library and so it's very basic, lately the community is shifting from the highly customizable and pluggable standard of tools (like Gulp, PostCSS or Mocha's ecosystem) to more battery-included solutions (like webpack and Jest) that relieve developers the burden of choosing, setting up and maintaining a boatload of plugins.
At least that's what I feel about the web dev community right now.
MaxArt 3405 days ago. link 1 point ▲ ▼
Yes, but on a more practical side, it makes little difference: you copy that reference to work with the object it points to.
If you take PHP. instead, as long as they're arrays (for those who don't know the evil of PHP, they're the equivalent of *both* JavaScript's Array and Object instances), it makes *deep* copies of them, and you have to use the & operator to get refrences instead. (Class objects are always passed as in JavaScript instead - did I mention that PHP is evil?)
MaxArt 3405 days ago. link 1 point ▲ ▼
I just realized that you made this comment on a link *you* posted XD
MaxArt 3405 days ago. link 2 points ▲ ▼
How about some documentation? Or just some readme?
Also, I don't think you should version your VS .sln and .csproj files for this kind of projects.
MaxArt 3406 days ago. link 3 points ▲ ▼
What do you mean you couldn't figure out how to achieve code coverage with Mocha? You have to run Istanbul on top of it and you're done:
https://istanbul.js.org/docs/tutorials/mocha/

For me, the real new concept of Jest is snapshot testing. It's handy but also quite jarring as it transforms all the tests in a string comparison, so the test logic is moved into the serializers.

Also Jest's watcher is quite nice.
MaxArt 3407 days ago. link 3 points ▲ ▼
And remember:
* If you're listing more than 10 rules, break out into multiple discussions.
[more]