challenge-algorithms-v2.0-D.../node_modules/babel-preset-jest
2022-10-27 16:56:30 -03:00
..
index.js Desaio 01 concluido 2022-10-27 16:56:30 -03:00
LICENSE Desaio 01 concluido 2022-10-27 16:56:30 -03:00
package.json Desaio 01 concluido 2022-10-27 16:56:30 -03:00
README.md Desaio 01 concluido 2022-10-27 16:56:30 -03: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'],
});