{"size": 310, "ext": "js", "max_stars_repo_path": "packages/test/helpers/transformers/javascript.js", "max_stars_repo_name": "lambGirl/umi", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/test/helpers/transformers/javascript.js", "max_issues_repo_name": "lambGirl/umi", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/test/helpers/transformers/javascript.js", "max_forks_repo_name": "lambGirl/umi", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.8333333333, "max_line_length": 61, "alphanum_fraction": 0.7580645161}

// 如果您已经在使用jest-cli，请添加babel-jest，它将使用Babel自动编译JavaScript代码。
const babelJest = require('babel-jest');


module.exports = babelJest.createTransformer({
  // 指向根目录处具有jest-preset.json或jest-preset.js文件的npm模块
  presets: [require.resolve('@umijs/babel-preset-umi/node')],
  babelrc: false,
  configFile: false,
});
