Jamie's tech blog

The Blue Nowhere

[Frontend Note] Path Aliases in Typescript + Webpack5 + Jest

How to set up Typescript, Webpack and Jest path aliases once and for all in a project?

In a project I originally only used path aliases in webpack, but vscode still couldn't resolve those paths, and Jest unit tests had the same issue. Eventually I found that Typescript and Jest each need their own alias configuration.