Merge pull request #6361 from Ocelot-Social-Community/fix-coverage

refactor(webapp): fix coverage
This commit is contained in:
Ulf Gebhardt 2023-06-07 13:34:19 +02:00 committed by GitHub
commit 9ab1ada334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 554 additions and 479 deletions

View File

@ -20,9 +20,10 @@ module.exports = {
lines: 83,
},
},
coverageProvider: 'v8',
setupFiles: ['<rootDir>/test/registerContext.js', '<rootDir>/test/testSetup.js'],
transform: {
'.*\\.(vue)$': 'vue-jest',
'.*\\.(vue)$': '@vue/vue2-jest',
'^.+\\.js$': 'babel-jest',
},
testMatch: ['**/?(*.)+(spec|test).js?(x)'],

View File

@ -66,9 +66,9 @@
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"@babel/core": "~7.21.4",
"@babel/core": "~7.22.1",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.20.2",
"@babel/preset-env": "^7.22.4",
"@faker-js/faker": "5.1.0",
"@nuxtjs/composition-api": "0.32.0",
"@storybook/addon-a11y": "^6.3.6",
@ -79,8 +79,9 @@
"@vue/eslint-config-prettier": "~6.0.0",
"@vue/server-test-utils": "~1.0.0-beta.31",
"@vue/test-utils": "1.3.4",
"@vue/vue2-jest": "29",
"async-validator": "^3.2.4",
"babel-core": "~7.0.0-bridge.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "~10.1.0",
"babel-jest": "29.5",
"babel-loader": "~8.1.0",
@ -110,7 +111,6 @@
"storybook-vue-router": "^1.0.7",
"style-loader": "~0.23.1",
"style-resources-loader": "~1.3.3",
"vue-jest": "~3.0.5",
"vue-svg-loader": "~0.16.0",
"vue-template-compiler": "^2.6.11"
},

View File

@ -33,6 +33,9 @@ export default {
user: 'auth/user',
}),
},
data() {
return { contribution: {} }
},
async asyncData(context) {
const {
app,

View File

@ -8,6 +8,9 @@ import SearchResults from '~/components/_new/features/SearchResults/SearchResult
export default {
layout: 'default',
watchQuery: ['search'],
data() {
return { search: null }
},
head() {
return {
title: this.$t('search.title'),

File diff suppressed because it is too large Load Diff