From 70edda034201b9d7c3d38bb714dfb35324b2841c Mon Sep 17 00:00:00 2001 From: François Freitag Date: Sun, 16 May 2021 17:56:50 +0200 Subject: Port dav calendar settings page to Vue.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Drop reliance on deprecated global jQuery object. - Allow testing user interactions. - Use newer technology stack. --- Test user interactions with the groupware dav settings Add infrastructure to test Vue components: - Use recommended libraries: - https://vuejs.org/v2/guide/testing.html#Recommendations - Use jest-dom for robust assertions on the DOM state - Use user-event to be more representative of user actions - Code is transpiled by Jest, with the help of vue-jest. Ignore test files for no-unpublished-import. Prevent ESLint from flagging: ``` /home/runner/work/server/server/apps/dav/src/views/CalDavSettings.spec.js Error: 1:24 error "@testing-library/vue" is not published node/no-unpublished-import Error: 2:23 error "@testing-library/user-event" is not published node/no-unpublished-import ``` Signed-off-by: François Freitag --- webpack.common.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webpack.common.js') diff --git a/webpack.common.js b/webpack.common.js index 9d800139aff..5c067b3e8bf 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -8,6 +8,7 @@ const accessibility = require('./apps/accessibility/webpack') const comments = require('./apps/comments/webpack') const core = require('./core/webpack') const dashboard = require('./apps/dashboard/webpack') +const dav = require('./apps/dav/webpack') const files = require('./apps/files/webpack') const files_sharing = require('./apps/files_sharing/webpack') const files_trashbin = require('./apps/files_trashbin/webpack') @@ -26,6 +27,7 @@ const modules = { comments, core, dashboard, + dav, files, files_sharing, files_trashbin, -- cgit v1.2.3