jest: configuring test environments

2021-05-04

 | 

~2 min read

 | 

345 words

By default, Jest runs tests in a “browser-like” environment using jsdom. This, however, is configurable. For example, if you’re building a…

css: centering elements easily

2021-05-04

 | 

~2 min read

 | 

323 words

When I first started writing websites, I thought of a web page as a page. That is, a piece of paper. 8.5” x 11”. But that’s not how it…

jest: using import and es modules

2021-05-03

 | 

~2 min read

 | 

311 words

If you are taking advantage of ES Modules, whether through a extension or babel transpilation, it’s likely that you’re using the / syntax…

jest: a quick intro to custom runners

2021-05-02

 | 

~3 min read

 | 

564 words

Jest is best known as a test runner, however, it can be used to run all sorts of things, including custom runners, Go, Python, etc. As part…

typescript: function overloading

2021-05-02

 | 

~4 min read

 | 

662 words

In languages like Java and C#, function overloading is quite popular. The way I understand it: instead of having multiple functions, you…

Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!