UNPKG

382 BJavaScriptView Raw
1const babelJest = require('babel-jest');
2const babelServerRule = require('./src/webpack/inc/babel-server-rule')({
3 cacheDirectory: false,
4 noChunk: true,
5}).use.options;
6
7const customJest = babelJest.createTransformer({
8 presets: babelServerRule.presets,
9 plugins: babelServerRule.plugins,
10});
11customJest.includes = query => query === 'babel-jest';
12module.exports = customJest;