aoc/node_modules/babel-preset-jest
alex ab688f8b38 solutions 2022-12-03 17:11:42 -05:00
..
LICENSE solutions 2022-12-03 17:11:42 -05:00
README.md solutions 2022-12-03 17:11:42 -05:00
index.js solutions 2022-12-03 17:11:42 -05:00
package.json solutions 2022-12-03 17:11:42 -05:00

README.md

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'],
});