Commit 2e42ae52 by Ryan McKinley Committed by GitHub

Chore: update jest to 25 (#28096)

parent 71d72cc9
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
"@types/fs-extra": "^8.1.0", "@types/fs-extra": "^8.1.0",
"@types/inquirer": "^6.0.3", "@types/inquirer": "^6.0.3",
"@types/jest": "24.0.13", "@types/jest": "24.0.13",
"@types/jest-cli": "^23.6.0",
"@types/node": "^12.0.4", "@types/node": "^12.0.4",
"@types/prettier": "^1.16.4", "@types/prettier": "^1.16.4",
"@types/puppeteer-core": "1.9.0", "@types/puppeteer-core": "1.9.0",
...@@ -73,9 +72,8 @@ ...@@ -73,9 +72,8 @@
"html-loader": "0.5.5", "html-loader": "0.5.5",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"inquirer": "^6.3.1", "inquirer": "^6.3.1",
"jest": "24.8.0", "jest": "^25",
"jest-canvas-mock": "2.1.2", "jest-canvas-mock": "2.1.2",
"jest-cli": "^24.8.0",
"jest-coverage-badges": "^1.1.2", "jest-coverage-badges": "^1.1.2",
"jest-environment-jsdom-fifteen": "^1.0.2", "jest-environment-jsdom-fifteen": "^1.0.2",
"jest-junit": "^6.4.0", "jest-junit": "^6.4.0",
......
import * as jestCLI from 'jest-cli'; import { runCLI } from '@jest/core';
import { useSpinner } from '../../utils/useSpinner'; import { useSpinner } from '../../utils/useSpinner';
import { loadJestPluginConfig } from '../../../config/jest.plugin.config'; import { loadJestPluginConfig } from '../../../config/jest.plugin.config';
...@@ -34,7 +34,7 @@ export const testPlugin = ({ ...@@ -34,7 +34,7 @@ export const testPlugin = ({
}; };
// @ts-ignore // @ts-ignore
const runJest = () => jestCLI.runCLI(cliConfig, [process.cwd()]); const runJest = () => runCLI(cliConfig, [process.cwd()]);
if (watch) { if (watch) {
runJest(); runJest();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment