Skip to content

add tsm support

Compare
Choose a tag to compare
@iambumblehead iambumblehead released this 23 Jul 23:42
6e53950

This release adds support for tsm and many stability improvements,

  • Adds a tsm unit test and example to the README
  • Adds typescript and node-native runner tests for windows CI. Previously, these were disabled because there was no condition to detect node v18+ in windows CI. The detect-node package is added to enable tests requiring node v18+,
  • Renames esmockLoader.mjs to esmockLoader.js. Esbuild minification would not preserve the .mjs extension and the extension isn't needed because it was used to trigger "esm" mode when esmock previously attempted to support cjs unit-tests,
  • Uses runner-specific test folders. These allow each test folder to define their own tsconfig.json, specific version of a dependency and other things,
  • Updates a test that depended on an old package version --removes the old package and use a local module instead. The old package and new local module reproduce a babel-generated type of CJS file.