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
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).