mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(@vant/cli): bump jest v27 (#9293)
This commit is contained in:
parent
c67127541e
commit
816790a875
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vant/cli",
|
"name": "@vant/cli",
|
||||||
"version": "3.11.2",
|
"version": "3.12.0-alpha.2-jest",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"typings": "lib/index.d.ts",
|
"typings": "lib/index.d.ts",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -42,6 +42,7 @@
|
|||||||
"@babel/preset-typescript": "^7.14.5",
|
"@babel/preset-typescript": "^7.14.5",
|
||||||
"@docsearch/css": "3.0.0-alpha.33",
|
"@docsearch/css": "3.0.0-alpha.33",
|
||||||
"@docsearch/js": "3.0.0-alpha.33",
|
"@docsearch/js": "3.0.0-alpha.33",
|
||||||
|
"@types/jest": "^27.0.1",
|
||||||
"@vant/eslint-config": "^3.3.2",
|
"@vant/eslint-config": "^3.3.2",
|
||||||
"@vant/markdown-loader": "^4.1.0",
|
"@vant/markdown-loader": "^4.1.0",
|
||||||
"@vant/markdown-vetur": "^2.2.0",
|
"@vant/markdown-vetur": "^2.2.0",
|
||||||
@ -50,7 +51,7 @@
|
|||||||
"@vue/babel-plugin-jsx": "^1.0.6",
|
"@vue/babel-plugin-jsx": "^1.0.6",
|
||||||
"@vue/test-utils": "2.0.0-rc.6",
|
"@vue/test-utils": "2.0.0-rc.6",
|
||||||
"autoprefixer": "^9.0.0",
|
"autoprefixer": "^9.0.0",
|
||||||
"babel-jest": "^26.6.3",
|
"babel-jest": "^27.0.6",
|
||||||
"babel-loader": "^8.2.2",
|
"babel-loader": "^8.2.2",
|
||||||
"babel-plugin-import": "^1.13.3",
|
"babel-plugin-import": "^1.13.3",
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5.1",
|
||||||
@ -66,9 +67,9 @@
|
|||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"html-webpack-plugin": "^5.3.1",
|
"html-webpack-plugin": "^5.3.1",
|
||||||
"husky": "^6.0.0",
|
"husky": "^6.0.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^27.0.6",
|
||||||
"jest-canvas-mock": "^2.3.1",
|
"jest-canvas-mock": "^2.3.1",
|
||||||
"jest-serializer-html": "^7.0.0",
|
"jest-serializer-html": "^7.1.0",
|
||||||
"less": "^4.1.1",
|
"less": "^4.1.1",
|
||||||
"less-loader": "^7.2.1",
|
"less-loader": "^7.2.1",
|
||||||
"lint-staged": "^10.5.3",
|
"lint-staged": "^10.5.3",
|
||||||
@ -84,9 +85,9 @@
|
|||||||
"sass-loader": "^10.1.1",
|
"sass-loader": "^10.1.1",
|
||||||
"style-loader": "^2.0.0",
|
"style-loader": "^2.0.0",
|
||||||
"stylelint": "^13.13.1",
|
"stylelint": "^13.13.1",
|
||||||
"ts-jest": "^26.5.2",
|
"ts-jest": "^27.0.5",
|
||||||
"typescript": "^4.3.2",
|
"typescript": "^4.3.2",
|
||||||
"vue-jest": "^5.0.0-alpha.8",
|
"vue3-jest": "^27.0.0-alpha.2",
|
||||||
"vue-loader": "^16.1.2",
|
"vue-loader": "^16.1.2",
|
||||||
"vue-router": "^4.0.0",
|
"vue-router": "^4.0.0",
|
||||||
"webpack": "^5.38.1",
|
"webpack": "^5.38.1",
|
||||||
|
@ -8,6 +8,7 @@ import {
|
|||||||
} from '../common/constant';
|
} from '../common/constant';
|
||||||
|
|
||||||
const DEFAULT_CONFIG = {
|
const DEFAULT_CONFIG = {
|
||||||
|
testEnvironment: 'jsdom',
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'\\.(css|less|scss)$': JEST_STYLE_MOCK_FILE,
|
'\\.(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,
|
'\\.(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],
|
setupFilesAfterEnv: [JEST_SETUP_FILE],
|
||||||
moduleFileExtensions: ['js', 'jsx', 'vue', 'ts', 'tsx'],
|
moduleFileExtensions: ['js', 'jsx', 'vue', 'ts', 'tsx'],
|
||||||
transform: {
|
transform: {
|
||||||
'\\.(vue)$': 'vue-jest',
|
'\\.(vue)$': 'vue3-jest',
|
||||||
'\\.(js|jsx|ts|tsx)$': 'babel-jest',
|
'\\.(js|jsx|ts|tsx)$': 'babel-jest',
|
||||||
},
|
},
|
||||||
transformIgnorePatterns: ['/node_modules/(?!(@vant/cli))/'],
|
transformIgnorePatterns: ['/node_modules/(?!(@vant/cli))/'],
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user