github-pages-deploy-action/node_modules/babel-preset-jest
James Ives 8fcf8339ce 3.4.9
2020-04-30 08:40:07 -04:00
..
index.js 3.4.9 2020-04-30 08:40:07 -04:00
LICENSE 3.4.3 2020-03-31 08:42:07 -04:00
package.json 3.4.9 2020-04-30 08:40:07 -04:00
README.md 3.4.3 2020-03-31 08:42:07 -04:00

babel-preset-jest

Babel preset for all Jest plugins. This preset is automatically included when using babel-jest.

Install

$ npm install --save-dev babel-preset-jest

Usage

module.exports = {
  presets: ['jest'],
};

Via CLI

$ babel script.js --presets jest

Via Node API

require('@babel/core').transform('code', {
  presets: ['jest'],
});