Testing Package Consumption Scenarios with pkg-consumption-test
How to automatically test if your npm package works correctly in various JavaScript environments like Node.js CJS/ESM, TypeScript, browsers, etc.
- #testing
- #npm
- #package
I'm a software developer with a great passion for web technologies and the JavaScript ecosystem.
Vienna, Austria
How to automatically test if your npm package works correctly in various JavaScript environments like Node.js CJS/ESM, TypeScript, browsers, etc.
How I used Abstract Syntax Trees (ASTs) and the `jscodeshift` library to migrate module specifiers to full paths in a TypeScript codebase.
A lesson on how to achieve fine-grained TypeScript results by combining generics with conditional types.
Why you might want to use Playwright Test as a test runner for unit tests, and how to fill in missing pieces (e.g. code coverage).
A guide for how to set up a Windows+WSL2+Ubuntu development environment for the Node.js ecosystem.
How to combine `nvm` and the `code` CLI to start multiple VS Code instances using separate versions of Node.js.
The TypeScript configuration I use as a basis for new projects.