XuelesszzZ 94af2b8e7b 6-30-5 | 1 year ago | |
---|---|---|
.. | ||
LICENSE | 1 year ago | |
README.md | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year 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'],
});