同步操作将从 sxfad/react-admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
'use strict';// Do this as the first thing so that any code reading it knows the right env.process.env.BABEL_ENV = 'test';process.env.NODE_ENV = 'test';process.env.PUBLIC_URL = '';// Makes the script crash on unhandled rejections instead of silently// ignoring them. In the future, promise rejections that are not handled will// terminate the Node.js process with a non-zero exit code.process.on('unhandledRejection', err => {throw err;});// Ensure environment variables are read.require('../config/env');const jest = require('jest');const execSync = require('child_process').execSync;let argv = process.argv.slice(2);function isInGitRepository() {try {execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' });return true;} catch (e) {return false;}}function isInMercurialRepository() {try {execSync('hg --cwd . root', { stdio: 'ignore' });return true;} catch (e) {return false;}}// Watch unless on CI or explicitly running all testsif (!process.env.CI &&argv.indexOf('--watchAll') === -1 &&argv.indexOf('--watchAll=false') === -1) {// https://github.com/facebook/create-react-app/issues/5210const hasSourceControl = isInGitRepository() || isInMercurialRepository();argv.push(hasSourceControl ? '--watch' : '--watchAll');}jest.run(argv);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。