Esmock Versions Save

ESM import and globals mocking for unit tests

v2.6.5

1 month ago

add node 22 to ci test pipeline and use with { type: 'json' } import syntax for node >= 20,

v2.6.4

3 months ago

Essentially, this release enables esmock to resolve the following esm export, see https://github.com/iambumblehead/esmock/issues/293

{
  "exports": {
    "./*": {
      "require": "./*.js",
      "import": "./*.js"
    }
  }
}

the following is added to the README,

Note: Typescript loaders ts-node 👍 and tsm 👍 are compatible with other loaders, including esmock. swc 👎 and tsx 👎 are demonstrated as incompatible with other loaders, including esmock.

Full list of changes,

v2.6.3

4 months ago

resolve nested exports defined on named-properties with wildcards, eg exports: { './*': { default: './src/*/index.js' } } resolves this issue at esmock thanks @dschnare

v2.6.2

4 months ago

remove reserved keywords from export names lists, allows express to be mocked, thanks @lcapel

v2.6.1

4 months ago

mostly this release resolves an issue mocking builtins imported globally with await import

v2.6.0

6 months ago

v2.5.9

6 months ago

v2.5.8

7 months ago

v2.5.7

7 months ago

mainly this issue resolves a critical error reported here https://github.com/iambumblehead/esmock/issues/260

v2.5.6

7 months ago

update resolver to latest version, resolves a resolution error that seems to have been introduced by a previous update from the past week.