mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
test: update jest to v26 (#7319)
This commit is contained in:
parent
37271f8ac4
commit
8c7228f1e8
@ -32,9 +32,9 @@
|
||||
"audit": "improved-yarn-audit --ignore-dev-deps --min-severity moderate -e 1488"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ls-lint/ls-lint": "^1.8.1",
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.5",
|
||||
"@ls-lint/ls-lint": "^1.8.1",
|
||||
"@nuxtjs/eslint-config": "^2.0.2",
|
||||
"@rollup/plugin-alias": "^3.1.0",
|
||||
"@rollup/plugin-commonjs": "^11.0.2",
|
||||
@ -44,7 +44,7 @@
|
||||
"@vue/server-test-utils": "^1.0.0-beta.33",
|
||||
"@vue/test-utils": "^1.0.0-beta.33",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"babel-jest": "^25.4.0",
|
||||
"babel-jest": "^26.0.1",
|
||||
"consola": "^2.11.3",
|
||||
"cross-spawn": "^7.0.2",
|
||||
"eslint": "6.8.0",
|
||||
@ -59,7 +59,7 @@
|
||||
"got": "^11.0.2",
|
||||
"improved-yarn-audit": "^2.0.0",
|
||||
"is-wsl": "^2.1.1",
|
||||
"jest": "^25.4.0",
|
||||
"jest": "^26.0.1",
|
||||
"jsdom": "^16.2.2",
|
||||
"klaw-sync": "^6.0.0",
|
||||
"lerna": "^3.20.2",
|
||||
|
@ -2,7 +2,7 @@ import path from 'path'
|
||||
import util from 'util'
|
||||
import consola from 'consola'
|
||||
import prettyFormat from 'pretty-format'
|
||||
import { NuxtCommand, getWebpackConfig } from '../..'
|
||||
import { NuxtCommand, getWebpackConfig } from '../../src/index'
|
||||
import webpackCommand from '../../src/commands/webpack'
|
||||
|
||||
const replaceAll = (str, a, b) => str.split(a).join(b)
|
||||
|
@ -15,6 +15,8 @@ chalk.level = 0
|
||||
|
||||
jest.setTimeout(60000)
|
||||
|
||||
jest.mock('esm', () => () => require)
|
||||
|
||||
consola.mockTypes(() => jest.fn())
|
||||
|
||||
function errorTrap (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user