mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-10 22:44:32 +08:00
* Let Jest handle all file types * Update regexes * Fix exclusion regex to also exclude files without extension * Be over-cautious with Windows paths because I'm not sure how Jest handles them * There is no automatic babel-jest discovery now that we use transsform
15 lines
473 B
JavaScript
15 lines
473 B
JavaScript
/**
|
|
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
const babelJest = require('babel-jest');
|
|
|
|
module.exports = babelJest.createTransformer({
|
|
presets: [require.resolve('babel-preset-react-app')],
|
|
babelrc: false
|
|
});
|