caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
LICENSE | 8 months ago | |
README.md | 8 months ago | |
index.js | 8 months ago | |
package.json | 8 months ago |
Babel preset for all Jest plugins. This preset is automatically included when using babel-jest.
$ npm install --save-dev babel-preset-jest
babel.config.js
(Recommended)module.exports = {
presets: ['jest'],
};
$ babel script.js --presets jest
require('@babel/core').transform('code', {
presets: ['jest'],
});