babel-plugin-proton-hoist
Babel plugin to hoist proton.disableAutomock
, proton.enableAutomock
, proton.unmock
, proton.mock
, calls above import
statements. This plugin is automatically included when using babel-proton.
Installation
yarn add --dev babel-plugin-proton-hoist
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
babel --plugins proton-hoist script.js
Via Node API
;