mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: update jest to 25 (#28096)
This commit is contained in:
parent
71d72cc973
commit
2e42ae5236
@ -38,7 +38,6 @@
|
||||
"@types/fs-extra": "^8.1.0",
|
||||
"@types/inquirer": "^6.0.3",
|
||||
"@types/jest": "24.0.13",
|
||||
"@types/jest-cli": "^23.6.0",
|
||||
"@types/node": "^12.0.4",
|
||||
"@types/prettier": "^1.16.4",
|
||||
"@types/puppeteer-core": "1.9.0",
|
||||
@ -73,9 +72,8 @@
|
||||
"html-loader": "0.5.5",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"inquirer": "^6.3.1",
|
||||
"jest": "24.8.0",
|
||||
"jest": "^25",
|
||||
"jest-canvas-mock": "2.1.2",
|
||||
"jest-cli": "^24.8.0",
|
||||
"jest-coverage-badges": "^1.1.2",
|
||||
"jest-environment-jsdom-fifteen": "^1.0.2",
|
||||
"jest-junit": "^6.4.0",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as jestCLI from 'jest-cli';
|
||||
import { runCLI } from '@jest/core';
|
||||
import { useSpinner } from '../../utils/useSpinner';
|
||||
import { loadJestPluginConfig } from '../../../config/jest.plugin.config';
|
||||
|
||||
@ -34,7 +34,7 @@ export const testPlugin = ({
|
||||
};
|
||||
|
||||
// @ts-ignore
|
||||
const runJest = () => jestCLI.runCLI(cliConfig, [process.cwd()]);
|
||||
const runJest = () => runCLI(cliConfig, [process.cwd()]);
|
||||
|
||||
if (watch) {
|
||||
runJest();
|
||||
|
Loading…
Reference in New Issue
Block a user