ljharb is an extremely interesting person. There’s no doubting the positive impact he’s had on the OSS community and the work he’s done.
However, there are some things he does that are incomprehensible.
For example, Enzyme. Over three years ago this issue was opened for Enzyme on React 17: https://github.com/enzymejs/enzyme/issues/2429
Nothing moved for a while, and I think he said something along the lines of “if you want React 17 support, stop complaining and help”. So the community got involved. There are multiple PRs adding React 17 support. Many unofficial React 17 adapters. A lot of people have put a lot of work into this, ensuring compatibility, coverage etc. Yet to this day, none of them have been merged. Eg https://github.com/enzymejs/enzyme/pull/2564
Given the amount of time that has passed, and the work the community has put in, something is amiss. It feels like he’s now intentionally avoiding React 17+ support. But why? I don’t understand why someone would ask for help then ignore the help when it comes in. That isn’t much better than the swathe of rude/entitled comments he was getting on the issue before he locked it.
I ended up migrating to RTL, but this made many of my tests more complicated (especially compared to shallow rendering).
Mocha is a test runner, Chai is an assertion library, Sinon is a mocking library, this normally the combination you would need to use if you choose mocha, but there are others.
BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
Take a look at proxyquire: https://www.npmjs.com/package/proxyquire - they do some fancy magic to allow you to stub es module imports.
Minimalistic BDD-style assertions for Node.JS and the browser.
The Type Linter for JS
Amplication: open-source Node.js backend code generator. An open-source platform that helps developers build backends without spending time on boilerplate & repetitive coding. Including production-ready GraphQL & REST APIs, DB schema, DTOs, filtering, pagination, RBAC, & more.
Playing with spok inside Cypress
Best practices for writing testable ES6 modules
Alternative to AWS Mock
2 projects | dev.to | 15 Feb 2023
Top OpenAI Tools, Examples & Use Cases
6 projects | dev.to | 6 Feb 2023
Need help writing a jest test that mocks an API call which will update state
2 projects | /r/react | 29 Sep 2022
Unit testing with React and Cypress
4 projects | dev.to | 14 Sep 2022
When to use DI?
1 project | /r/typescript | 12 Sep 2022
How to test a function that uses moment to format a date ? usimg karma
1 project | /r/angularjs | 25 Aug 2022
A note from our sponsor - SurveyJS
surveyjs.io | 22 Sep 2023