chore(@vant/cli): bump jest v27 (#9293)

This commit is contained in:
neverland 2021-08-20 10:15:17 +08:00 committed by GitHub
parent c67127541e
commit 816790a875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 745 additions and 1626 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@vant/cli",
"version": "3.11.2",
"version": "3.12.0-alpha.2-jest",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"bin": {
@ -42,6 +42,7 @@
"@babel/preset-typescript": "^7.14.5",
"@docsearch/css": "3.0.0-alpha.33",
"@docsearch/js": "3.0.0-alpha.33",
"@types/jest": "^27.0.1",
"@vant/eslint-config": "^3.3.2",
"@vant/markdown-loader": "^4.1.0",
"@vant/markdown-vetur": "^2.2.0",
@ -50,7 +51,7 @@
"@vue/babel-plugin-jsx": "^1.0.6",
"@vue/test-utils": "2.0.0-rc.6",
"autoprefixer": "^9.0.0",
"babel-jest": "^26.6.3",
"babel-jest": "^27.0.6",
"babel-loader": "^8.2.2",
"babel-plugin-import": "^1.13.3",
"chokidar": "^3.5.1",
@ -66,9 +67,9 @@
"hash-sum": "^2.0.0",
"html-webpack-plugin": "^5.3.1",
"husky": "^6.0.0",
"jest": "^26.6.3",
"jest": "^27.0.6",
"jest-canvas-mock": "^2.3.1",
"jest-serializer-html": "^7.0.0",
"jest-serializer-html": "^7.1.0",
"less": "^4.1.1",
"less-loader": "^7.2.1",
"lint-staged": "^10.5.3",
@ -84,9 +85,9 @@
"sass-loader": "^10.1.1",
"style-loader": "^2.0.0",
"stylelint": "^13.13.1",
"ts-jest": "^26.5.2",
"ts-jest": "^27.0.5",
"typescript": "^4.3.2",
"vue-jest": "^5.0.0-alpha.8",
"vue3-jest": "^27.0.0-alpha.2",
"vue-loader": "^16.1.2",
"vue-router": "^4.0.0",
"webpack": "^5.38.1",

View File

@ -8,6 +8,7 @@ import {
} from '../common/constant';
const DEFAULT_CONFIG = {
testEnvironment: 'jsdom',
moduleNameMapper: {
'\\.(css|less|scss)$': JEST_STYLE_MOCK_FILE,
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': JEST_FILE_MOCK_FILE,
@ -15,7 +16,7 @@ const DEFAULT_CONFIG = {
setupFilesAfterEnv: [JEST_SETUP_FILE],
moduleFileExtensions: ['js', 'jsx', 'vue', 'ts', 'tsx'],
transform: {
'\\.(vue)$': 'vue-jest',
'\\.(vue)$': 'vue3-jest',
'\\.(js|jsx|ts|tsx)$': 'babel-jest',
},
transformIgnorePatterns: ['/node_modules/(?!(@vant/cli))/'],

File diff suppressed because it is too large Load Diff