2022-11-28
|~3 min read
|457 words
While testing specific CSS styles within a unit test is rare, it’s not uncommon to want to know if the right class was applied to a…
2022-11-28
|~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…
2022-11-28
|~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…
2022-11-28
|~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…
2022-11-28
|~2 min read
|268 words
Similar to other Jest plugins (e.g., typeahead), is meant to help make testing faster and easier. In the case of , the ideas is that a code…
2022-11-28
|~6 min read
|1041 words
In many React applications, there’s an component that is wrapped by a number of providers - themes, redux, routing, etc. When it comes to…
2022-11-28
|~9 min read
|1710 words
When it comes to testing UIs, there’s a lot to keep track of. Sometimes it can be helpful to just make sure that if a component changes, you…
2022-11-28
|~2 min read
|394 words
A common pattern within Javascript applications is to use Webpack or Typescript to treat internal directories as modules so that they can be…
2022-11-28
|~2 min read
|259 words
A collection of posts on how to configure Jest to add various capabilities. Many of these posts are inspired by Kent C. Dodds’ Testing…