Skip to content

Releases: iambumblehead/esmock

add node v21 nightly to test ci pipeline

16 May 12:00
0a89895
Compare
Choose a tag to compare

detect async variant import.meta.resolve

09 May 17:03
3ee98e8
Compare
Choose a tag to compare
  • detect async import.meta.resolve and handle in a separate way
  • remove un-necessary usage of await keyword in README example
  • require node version less than 20.x

use Object.defineProperty to define mock properties

04 Apr 03:35
4425101
Compare
Choose a tag to compare

use Object.defineProperty to write mock definitions protected on inherited prototype chain, re #196

throw error when esmock.stricted is called with empty mock

23 Mar 23:24
fbdbe12
Compare
Choose a tag to compare

usability, restore previous mock-defining behaviour

29 Nov 05:47
8838e6a
Compare
Choose a tag to compare

This release adds node v19 to the ci-test pipeline and restores the previous mock defining-behaviour where properties can be seen easily with something like console.log(mockimported). This "un-does" a previous MR from 3 days ago that left part of the definition in the prototype chain, where properties were less discoverable.

@mshima windows drive letter patch

26 Nov 18:57
c2ce03a
Compare
Choose a tag to compare

added CONTRIBUTING.md

25 Nov 23:31
32d80f5
Compare
Choose a tag to compare

Adds a CONTRIBUTING.md and use the live module's default export in prototype of returned mock definition, to resolve class-instance mock related issue

support yarn PnP

26 Oct 09:11
Compare
Choose a tag to compare

This release makes esmock compatible with yarn PnP. To do this, esmock is published with no dependencies and is instead bundled with resolvewithplus. Changes for this release,

show full path at error message

14 Oct 02:56
5dfe486
Compare
Choose a tag to compare

show full path at error message, making it easier to identify an invalid path. Related #174

add "esmock.strictest"

05 Oct 14:42
996a798
Compare
Choose a tag to compare

This release adds esmock.strictest --a stricter version of esmock.strict which requires every module imported to the target module to be mocked,