Dad, Husband, Nerd from Minnesota

How to test and wait for React async events


If you are trying to simulate an event on a React component, and that event’s handler is an async method, it’s not clear how to wait for the handler to finish before making any assertions.

Read more ⟶

Publish a scoped package to a custom registry


When publishing a npm package, npm will use your configuration sources for a destination registry. npm also provides an ability to override configuration via the publishConfig field in package.json.

If your package is non-scoped, then you can override the publish npm registry:

Read more ⟶

yarn with private npm registries and authentication


We recently switched over a project from npm to yarn. Our existing project npm configuration (i.e. npmrc) specified private registries with authentication. I assumed that yarn would use existing npm configurations. However, after following this yarn issue thread, you must have a project yarnrc with the custom registries specified. Once the registries are defined, the existing npm configurations are used for authentication.

Read more ⟶

Let's try this again, with Hugo


Yes, I still have a blog. But in my defense, the last time I published something, it was a few months before my first daughter (Aria) was born. We moved to a new home and had our second daughter (Ellie) in less than 2 years after that. Needless to say, things didn’t calm down at all.

Read more ⟶