Need to run commands consecutively in an npm script, regardless of failures?
Don't use semicolons. They'll work in Linux/MacOS but failon windows 😢��
Use boolean operators instead!
Example:
❌rm -rf build; npm run build
✅(rm -rf build || true) && npm run build
Just found a way to write React tests faster!
Instead of writing tests from scratch, I'm writing Jest tests against my Storybook stories via this "testing-react" project: https://t.co/uJusCCpGmr
This makes testing simpler:
1. Import the story.
2. Start asserting. No setup! 😍
Thanks to the incredible efforts of the React 18 Working Group, we're upgrading the stability of the React 18 release from Alpha to Beta!
Here's what this means for you.
@shahulhmmd@marcba A "list comprehension" is shorthand syntax for generating an array. You can use it to replace certain Array functions, like map or filter.
Today I fixed 2 bugs that have been roaming wild in production and nobody has reported them until today. One was 2 yrs old. The other was 6.5 years old.
I'm still recovering from the shock.