vue commit

This commit is contained in:
zvv__666---vvz
2026-04-21 21:23:21 +08:00
commit 0fd6fbefd5
193 changed files with 65688 additions and 0 deletions

49
jest.config.js Normal file
View File

@@ -0,0 +1,49 @@
module.exports = {
'moduleFileExtensions': [
'js',
'jsx',
'json',
'vue',
'ts',
'tsx'
],
'transform': {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.tsx?$': 'ts-jest'
},
'transformIgnorePatterns': [
'/node_modules/'
],
'moduleNameMapper': {
'^@/(.*)$': '<rootDir>/src/$1'
},
'snapshotSerializers': [
'jest-serializer-vue'
],
'testMatch': [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
'collectCoverage': true,
'collectCoverageFrom': [
'src/utils/**/*.{ts,vue}',
'!src/utils/auth.ts',
'!src/utils/request.ts',
'src/components/**/*.{ts,vue}'
],
'coverageDirectory': '<rootDir>/tests/unit/coverage',
'coverageReporters': [
'lcov',
'text-summary'
],
'testURL': 'http://localhost/',
'watchPlugins': [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
],
'globals': {
'ts-jest': {
'babelConfig': true
}
}
};