diff --git a/packages/umi-test/package.json b/packages/umi-test/package.json index fd33a54967ac..31d780863d45 100644 --- a/packages/umi-test/package.json +++ b/packages/umi-test/package.json @@ -33,7 +33,7 @@ "enzyme": "^3.4.1", "enzyme-adapter-react-16": "^1.2.0", "identity-obj-proxy": "^3.0.0", - "jest-cli": "^23.5.0", + "jest": "^23.5.0", "jsdom": "^11.12.0", "react": "^16.4.2", "react-dom": "^16.4.2", diff --git a/packages/umi-test/src/index.js b/packages/umi-test/src/index.js index 9e558d40db27..d8318811a0a2 100644 --- a/packages/umi-test/src/index.js +++ b/packages/umi-test/src/index.js @@ -1,4 +1,4 @@ -import jestCli from 'jest-cli'; +import jest from 'jest'; import { join } from 'path'; import { existsSync, statSync } from 'fs'; @@ -73,7 +73,7 @@ export default function(opts = {}) { }; return new Promise((resolve, reject) => { - jestCli + jest .runCLI( { watch,