rickvanlieshout.com/jest/jest-preprocess.js
2019-05-09 00:11:44 +03:00

17 lines
357 B
JavaScript

'use strict';
const babelOptions = {
presets: [
'@babel/react',
'@babel/env',
'babel-preset-gatsby'
],
plugins: [
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-flow-strip-types',
],
};
module.exports = require('babel-jest').createTransformer(babelOptions);