2022-11-28
|~1 min read
|101 words
Determining when to abstract is one of the constant challenges of engineering. Abstracting too soon often creates as many problems as…
2022-11-28
|~4 min read
|607 words
When it comes to testing your application, it’s often useful to know how much of your code is covered in one way or another by tests…
2022-11-28
|~2 min read
|397 words
To run Jest in watch mode, pass the option: By default, Jest will run tests against all changed files since the last commit, but watch mode…
2022-11-28
|~2 min read
|256 words
If you’re getting an unresolved module error like the one above from ESLint, it means that ESLint (and ESLint alone) is unable to resolve…
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
|~1 min read
|195 words
In Debugging Node, I discussed how to use Node’s flag to debug a Node process. This is also really helpful for when we want to step through…
2022-11-28
|~3 min read
|418 words
One of those slightly annoying features of Jest’s watch mode is the regex pattern matching. It’s wonderful in how powerful it is, but it…
2022-11-28
|~5 min read
|815 words
Jest has a robust assertion library, but it’s also a general purpose tool. This can lead to some awkward tests, or imperative at least…
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…
2022-11-28
|~1 min read
|9 words
anatomy of an eslintrc static testing tools eslint
2022-11-28
|~3 min read
|450 words
Kent C Dodds has a walkthrough of getting an Express App up and running with some context for why he made the decisions. https://kentcdodds…
2022-11-28
|~6 min read
|1157 words
Notes from Kent’s FEM class, Javascript Testing Practices and Principles Topics Fundamentals behind tests and testing frameworks…