budibase/packages/common/node_modules/babel-preset-jest
Martin McKeaveney 0430cd11b1 building out new budibase API 2020-04-15 15:23:29 +01:00
..
LICENSE building out new budibase API 2020-04-15 15:23:29 +01:00
README.md building out new budibase API 2020-04-15 15:23:29 +01:00
index.js building out new budibase API 2020-04-15 15:23:29 +01:00
package.json building out new budibase API 2020-04-15 15:23:29 +01: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'],
});