Tag: JavaScript
All the articles with the tag "JavaScript".
How to migrate from Mocha to Jest
Updated: at 02:46 PMMove a Mocha suite to Jest with small edits instead of rewriting tests, including JSDOM via Jest's testEnvironment and mocha.opts.
Use TypeScript to DRY up React components
Updated: at 02:35 PMAfter using React context to stop prop drilling, replace repeated PropTypes with TypeScript and the tradeoff that introduces.
Use React Context to DRY up your components
Updated: at 02:36 PMIn this post, I'll show you a typical example of plumbing inside a React application and a way to fix it.
$.find and XML namespaces
Updated: at 02:36 PMQuery namespaced XML with jQuery. find() on fancynamespace:tag works in Firefox or Chrome, not both, and a nodeName filter fixes it.