Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years 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'],
});