How to use the babel-jest/build/index.createTransformer function in babel-jest

To help you get started, we’ve selected a few babel-jest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-zeroconfig / react-zeroconfig / jest-preset-files / transform.js View on Github external
const {createTransformer} = require('babel-jest/build/index');
const {getBabelConfig} = require('../lib/transpile/getBabelConfig');

module.exports = createTransformer({
  ...getBabelConfig({modules: 'commonjs', cwd: process.cwd()}),
});

babel-jest

Jest plugin to use babel for transformation.

MIT
Latest version published 11 months ago

Package Health Score

85 / 100
Full package analysis