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