Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(webapp): fix coverage #6361

Merged
merged 10 commits into from
Jun 7, 2023
3 changes: 2 additions & 1 deletion webapp/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)'],
Expand Down
8 changes: 4 additions & 4 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down
3 changes: 3 additions & 0 deletions webapp/pages/post/edit/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export default {
user: 'auth/user',
}),
},
data() {
return { contribution: {} }
},
async asyncData(context) {
const {
app,
Expand Down
3 changes: 3 additions & 0 deletions webapp/pages/search/search-results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
1,016 changes: 542 additions & 474 deletions webapp/yarn.lock

Large diffs are not rendered by default.