Releases: robertknight/babel-plugin-mockable-imports
Releases · robertknight/babel-plugin-mockable-imports
v2.0.1
Convert package to ES module
This plugin and its runtime helpers have been converted to ES modules. You will need a version of Node and other tooling that supports ESM to use it.
v1.8.0
v1.7.1
Add support for selectively restoring mocks
- Add support for selectively restoring mocks by passing an argument to
$restore
(PR). See README for details.
Support CommonJS imports of specific properties
Add support for mocking CommonJS imports of specific properties in one of the following forms:
var foo = require("foo").exportName;
var foo = require("foo")["exportName"];
var foo;
foo = require("foo").exportName;
var foo;
foo = require("foo")["exportName"];
v1.5.2
v1.5.1
This release fixes a bug in the generated code that could break other Babel plugins (eg. babel-plugin-transform-async-to-promises) under certain circumstances.
- (fix) Make generated
$imports.$add(...)
calls statements d1e8382
v1.5.0
v1.4.0
- Ignore auto-generated CommonJS imports 8688839