stable

Clone or download

Read-only

chore: Provide by vue/test-utils instead of mocking inject in Artidoc

part of request #38693 Use vue/test-utils instead of mocking strict inject No functional change. Unit tests should pass. composables and components using useConfigurationScreenHelper() are not changed, because mocking is the only way to go for this kind of construction. Change-Id: Ic5a4ee8a56f44855734bf14ca7c4866d15c99de5

Modified Files

Name
M plugins/artidoc/scripts/artidoc/src/App.test.ts +12 −9 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/AddNewSectionButton.test.ts +67 −105 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentContent.test.ts +36 −25 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentDropdown.test.ts +33 −58 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentHeader.test.ts +8 −7 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/configuration/ConfigurationModal.test.ts +17 −23 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/configuration/ConfigurationPanel.test.ts +10 −5 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/export/pdf/PdfExportMenuItem.test.ts +55 −61 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/SectionContent.test.ts +14 −3 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescription.test.ts +20 −8 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditor.test.ts +7 −9 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/footer/SectionEditorSaveCancelButtons.test.ts +7 −8 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/header/SectionDropdown.test.ts +4 −5 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/toc/TableOfContents.test.ts +16 −20 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/views/DocumentView.test.ts +23 −20 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/vue.shims.d.ts +24 −0 Go to diff View file