stable

Clone or download

Read-only

Convert most of the global libraries to Vitest

The remaining ones will be converted in dedicated contributions as they present specific challenges (Angular...). Part of request #27556: Migrate Vite-based packages to Vitest Change-Id: I1fd1e51789a13ce818611934ffac4319527ff884

Modified Files

Name
D lib/frontend/chart-builder/jest.config.js +0 −26 Go to diff View file
M lib/frontend/chart-builder/package.json +1 −1 Go to diff View file
M lib/frontend/chart-builder/src/chart-dates-service.test.js +2 −1 Go to diff View file
M lib/frontend/chart-builder/tsconfig.json +0 −1 Go to diff View file
D lib/frontend/ckeditor-image-upload/jest.config.js +0 −24 Go to diff View file
M lib/frontend/ckeditor-image-upload/package.json +1 −1 Go to diff View file
M lib/frontend/ckeditor-image-upload/src/file-upload-handler-factory.test.js +16 −15 Go to diff View file
M lib/frontend/ckeditor-image-upload/src/image-urls-finder.test.js +1 −0 Go to diff View file
D lib/frontend/concurrency-limit-pool/jest.config.js +0 −26 Go to diff View file
M lib/frontend/concurrency-limit-pool/package.json +1 −1 Go to diff View file
M lib/frontend/concurrency-limit-pool/src/concurrency-limit-pool.test.ts +1 −0 Go to diff View file
M lib/frontend/concurrency-limit-pool/tsconfig.json +1 −2 Go to diff View file
D lib/frontend/copy-to-clipboard/jest.config.js +0 −26 Go to diff View file
M lib/frontend/copy-to-clipboard/package.json +1 −1 Go to diff View file
M lib/frontend/copy-to-clipboard/src/copy-to-clipboard-element.test.ts +4 −2 Go to diff View file
M lib/frontend/copy-to-clipboard/tsconfig.json +1 −2 Go to diff View file
D lib/frontend/date-helper/jest.config.js +0 −26 Go to diff View file
M lib/frontend/date-helper/package.json +1 −1 Go to diff View file
M lib/frontend/date-helper/src/index.test.ts +1 −0 Go to diff View file
M lib/frontend/date-helper/tsconfig.json +0 −4 Go to diff View file
D lib/frontend/drag-and-drop/jest.config.js +0 −26 Go to diff View file
M lib/frontend/drag-and-drop/package.json +1 −1 Go to diff View file
M lib/frontend/drag-and-drop/src/DocumentEventsHandler.test.ts +10 −9 Go to diff View file
M lib/frontend/drag-and-drop/src/DrekkenovState.test.ts +37 −34 Go to diff View file
M lib/frontend/drag-and-drop/src/DropGhost.test.ts +14 −17 Go to diff View file
M lib/frontend/drag-and-drop/src/OngoingDrag.test.ts +4 −3 Go to diff View file
M lib/frontend/drag-and-drop/src/dom-manipulation.test.ts +4 −3 Go to diff View file
M lib/frontend/drag-and-drop/src/event-handler-factory.test.ts +72 −71 Go to diff View file
M lib/frontend/drag-and-drop/src/index.test.ts +19 −20 Go to diff View file
M lib/frontend/drag-and-drop/tsconfig.json +0 −2 Go to diff View file
M lib/frontend/fault/tsconfig.json +2 −5 Go to diff View file
D lib/frontend/fetch-result/jest.config.js +0 −26 Go to diff View file
M lib/frontend/fetch-result/package.json +1 −1 Go to diff View file
M lib/frontend/fetch-result/src/AllGetter.test.ts +2 −1 Go to diff View file
M lib/frontend/fetch-result/src/JSONParseFault.test.ts +1 −0 Go to diff View file
M lib/frontend/fetch-result/src/NetworkFault.test.ts +1 −0 Go to diff View file
M lib/frontend/fetch-result/src/ResponseRetriever.test.ts +1 −0 Go to diff View file
M lib/frontend/fetch-result/src/ResultFetcher.test.ts +1 −0 Go to diff View file
M lib/frontend/fetch-result/src/TuleapAPIFault.test.ts +1 −0 Go to diff View file
M lib/frontend/fetch-result/src/auto-encoder.test.ts +1 −0 Go to diff View file
M lib/frontend/fetch-result/src/json-decoder.test.ts +1 −0 Go to diff View file
M lib/frontend/fetch-result/tsconfig.json +2 −4 Go to diff View file
D lib/frontend/filter-table/jest.config.js +0 −26 Go to diff View file
M lib/frontend/filter-table/package.json +1 −1 Go to diff View file
M lib/frontend/filter-table/src/filter-inline-table.test.ts +1 −0 Go to diff View file
M lib/frontend/filter-table/tsconfig.json +1 −3 Go to diff View file
D lib/frontend/fp-feedback/jest.config.js +0 −26 Go to diff View file
M lib/frontend/fp-feedback/package.json +1 −1 Go to diff View file
M lib/frontend/fp-feedback/src/feedback.test.ts +1 −8 Go to diff View file
M lib/frontend/fp-feedback/tsconfig.json +2 −4 Go to diff View file
D lib/frontend/gettext/jest.config.js +0 −26 Go to diff View file
M lib/frontend/gettext/package.json +1 −1 Go to diff View file
D lib/frontend/gettext/src/__mocks__/node-gettext.ts +0 −35 Go to diff View file
M lib/frontend/gettext/src/gettext-async.test.ts +13 −3 Go to diff View file
M lib/frontend/gettext/tsconfig.json +0 −3 Go to diff View file
D lib/frontend/keyboard-shortcuts/jest.config.js +0 −26 Go to diff View file
M lib/frontend/keyboard-shortcuts/package.json +1 −1 Go to diff View file
M lib/frontend/keyboard-shortcuts/src/help-modal/add-to-modal.test.ts +10 −9 Go to diff View file
M lib/frontend/keyboard-shortcuts/src/help-modal/create-shortcuts-group-container/create-shortcut-cell.test.ts +1 −0 Go to diff View file
M lib/frontend/keyboard-shortcuts/src/help-modal/create-shortcuts-group-container/create-shortcuts-group-head.test.ts +1 −0 Go to diff View file
M lib/frontend/keyboard-shortcuts/src/help-modal/create-shortcuts-group-container/create-shortcuts-group-table.test.ts +1 −0 Go to diff View file
M lib/frontend/keyboard-shortcuts/src/help-modal/get-shortcuts-section.test.ts +1 −0 Go to diff View file
M lib/frontend/keyboard-shortcuts/src/help-modal/remove-from-modal.test.ts +1 −0 Go to diff View file
M lib/frontend/keyboard-shortcuts/src/wildcards/handle-wildcards.test.ts +1 −0 Go to diff View file
M lib/frontend/keyboard-shortcuts/tsconfig.json +1 −3 Go to diff View file
D lib/frontend/link-selector/jest.config.js +0 −26 Go to diff View file
M lib/frontend/link-selector/package.json +1 −1 Go to diff View file
M lib/frontend/link-selector/src/dropdown/DropdownManager.test.ts +30 −24 Go to diff View file
M lib/frontend/link-selector/src/events/EventManager.test.ts +21 −20 Go to diff View file
M lib/frontend/link-selector/src/events/ScrollingManager.test.ts +11 −9 Go to diff View file
M lib/frontend/link-selector/src/events/SearchFieldClearer.test.ts +2 −1 Go to diff View file
M lib/frontend/link-selector/src/events/SearchFieldEventCallbackHandler.test.ts +7 −6 Go to diff View file
M lib/frontend/link-selector/src/events/SearchFieldEventCallbackHandler.ts +1 −1 Go to diff View file
M lib/frontend/link-selector/src/helpers/group-id-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/helpers/hide-selectbox-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/helpers/keys-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/helpers/link-selector-in-modals-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/helpers/list-item-finder.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/items/ItemsMapManager.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/items/ListItemMapBuilder.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/navigation/FieldFocusManager.test.ts +3 −2 Go to diff View file
M lib/frontend/link-selector/src/navigation/KeyboardNavigationManager.test.ts +17 −12 Go to diff View file
M lib/frontend/link-selector/src/navigation/ListItemHighlighter.test.ts +12 −11 Go to diff View file
M lib/frontend/link-selector/src/renderers/BaseComponentRenderer.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/renderers/DropdownContentRenderer.test.ts +4 −1 Go to diff View file
M lib/frontend/link-selector/src/renderers/__snapshots__/DropdownContentRenderer.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/link-selector/src/selection/SelectionManager.test.ts +5 −3 Go to diff View file
M lib/frontend/link-selector/tsconfig.json +1 −2 Go to diff View file
D lib/frontend/list-picker/jest.config.js +0 −26 Go to diff View file
M lib/frontend/list-picker/package.json +1 −1 Go to diff View file
M lib/frontend/list-picker/src/dropdown/DropdownManager.test.ts +26 −24 Go to diff View file
M lib/frontend/list-picker/src/events/EventManager.test.ts +30 −29 Go to diff View file
M lib/frontend/list-picker/src/events/ListOptionsChangesObserver.test.ts +21 −23 Go to diff View file
M lib/frontend/list-picker/src/events/ScrollingManager.test.ts +11 −9 Go to diff View file
M lib/frontend/list-picker/src/helpers/color-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/helpers/hide-selectbox-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/helpers/keys-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/helpers/list-item-finder.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/helpers/list-picker-in-modals-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/helpers/option-label-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/helpers/templates/list-picker-element-badge-creator.test.ts +2 −1 Go to diff View file
M lib/frontend/list-picker/src/helpers/templates/predefined-item-template-retriever-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/items/ItemsMapManager.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/items/ListItemMapBuilder.test.ts +3 −2 Go to diff View file
M lib/frontend/list-picker/src/navigation/FieldFocusManager.test.ts +3 −2 Go to diff View file
M lib/frontend/list-picker/src/navigation/KeyboardNavigationManager.test.ts +17 −12 Go to diff View file
M lib/frontend/list-picker/src/navigation/ListItemHighlighter.test.ts +12 −11 Go to diff View file
M lib/frontend/list-picker/src/renderers/BaseComponentRenderer.test.ts +11 −6 Go to diff View file
M lib/frontend/list-picker/src/renderers/DropdownContentRenderer.test.ts +1 −0 Go to diff View file
M lib/frontend/list-picker/src/renderers/__snapshots__/DropdownContentRenderer.test.ts.snap +3 −3 Go to diff View file
M lib/frontend/list-picker/src/selection/MultipleSelectionManager.test.ts +3 −2 Go to diff View file
M lib/frontend/list-picker/src/selection/SingleSelectionManager.test.ts +3 −2 Go to diff View file
M lib/frontend/list-picker/src/test-helpers/selection-manager-test-helpers.ts +2 −0 Go to diff View file
M lib/frontend/list-picker/tsconfig.json +1 −2 Go to diff View file
D lib/frontend/po-gettext-plugin/jest.config.js +0 −26 Go to diff View file
M lib/frontend/po-gettext-plugin/package.json +1 −1 Go to diff View file
M lib/frontend/po-gettext-plugin/src/__snapshots__/po-gettext-plugin.test.ts.snap +3 −3 Go to diff View file
M lib/frontend/po-gettext-plugin/src/po-gettext-plugin.test.ts +5 −0 Go to diff View file
M lib/frontend/po-gettext-plugin/tsconfig-build.json +0 −1 Go to diff View file
M lib/frontend/po-gettext-plugin/tsconfig.json +0 −3 Go to diff View file
D lib/frontend/project-privacy-helper/jest.config.js +0 −26 Go to diff View file
M lib/frontend/project-privacy-helper/package.json +1 −1 Go to diff View file
M lib/frontend/project-privacy-helper/src/project-privacy-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/project-privacy-helper/tsconfig.json +0 −3 Go to diff View file
D lib/frontend/project-sidebar-internal/jest.config.js +0 −33 Go to diff View file
M lib/frontend/project-sidebar-internal/package.json +1 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/LinkedProjects.test.ts +3 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/PrivacyBadge.test.ts +3 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/ProjectAnnouncement.test.ts +3 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/ProjectFlags.test.ts +3 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/SidebarHeader.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/__snapshots__/LinkedProjects.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/__snapshots__/PrivacyBadge.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/__snapshots__/ProjectFlags.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Header/__snapshots__/SidebarHeader.test.ts.snap +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/ProjectSidebar.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/SidebarCollapseButton.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/SidebarFooter.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/SidebarLogo.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Tools/ToolList.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/Tools/ToolPresenter.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/__snapshots__/ProjectSidebar.test.ts.snap +18 −6 Go to diff View file
M lib/frontend/project-sidebar-internal/src/configuration.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/src/load-custom-element.test.ts +2 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/shortcuts.test.ts +7 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/src/strict-inject.test.ts +2 −1 Go to diff View file
M lib/frontend/project-sidebar-internal/src/url-sanitizer.test.ts +1 −0 Go to diff View file
M lib/frontend/project-sidebar-internal/tsconfig.json +1 −1 Go to diff View file
D lib/frontend/project-sidebar/jest.config.js +0 −29 Go to diff View file
M lib/frontend/project-sidebar/package.json +1 −1 Go to diff View file
M lib/frontend/project-sidebar/src/main.test.ts +2 −4 Go to diff View file
M lib/frontend/project-sidebar/tsconfig.json +1 −1 Go to diff View file
D lib/frontend/tlp-dropdown/jest.config.js +0 −26 Go to diff View file
M lib/frontend/tlp-dropdown/package.json +1 −1 Go to diff View file
M lib/frontend/tlp-dropdown/src/dropdowns.test.ts +19 −11 Go to diff View file
M lib/frontend/tlp-dropdown/tsconfig.json +1 −2 Go to diff View file
D lib/frontend/tlp-fetch/jest.config.js +0 −26 Go to diff View file
M lib/frontend/tlp-fetch/package.json +1 −1 Go to diff View file
M lib/frontend/tlp-fetch/src/fetch-wrapper.test.ts +9 −7 Go to diff View file
M lib/frontend/tlp-fetch/tsconfig.json +1 −3 Go to diff View file
D lib/frontend/tlp-modal/jest.config.js +0 −26 Go to diff View file
M lib/frontend/tlp-modal/package.json +1 −1 Go to diff View file
M lib/frontend/tlp-modal/src/modal-opener.test.ts +13 −11 Go to diff View file
M lib/frontend/tlp-modal/src/modal.test.ts +8 −10 Go to diff View file
M lib/frontend/tlp-modal/tsconfig.json +1 −2 Go to diff View file
D lib/frontend/tlp-relative-date/jest.config.js +0 −26 Go to diff View file
M lib/frontend/tlp-relative-date/package.json +1 −1 Go to diff View file
M lib/frontend/tlp-relative-date/src/relative-date-element.test.ts +1 −0 Go to diff View file
M lib/frontend/tlp-relative-date/src/relative-date-formatter.test.ts +1 −0 Go to diff View file
M lib/frontend/tlp-relative-date/src/relative-date-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/tlp-relative-date/tsconfig.json +1 −2 Go to diff View file
D lib/frontend/vue-breadcrumb-privacy/jest.config.js +0 −33 Go to diff View file
M lib/frontend/vue-breadcrumb-privacy/package.json +1 −1 Go to diff View file
M lib/frontend/vue-breadcrumb-privacy/src/BreadcrumbPrivacy.test.ts +2 −1 Go to diff View file
M lib/frontend/vue-breadcrumb-privacy/src/__snapshots__/BreadcrumbPrivacy.test.ts.snap +12 −30 Go to diff View file
M lib/frontend/vue-breadcrumb-privacy/tsconfig.json +0 −2 Go to diff View file
D lib/frontend/vue2-gettext-composition-helpers/jest.config.js +0 −26 Go to diff View file
D lib/frontend/vue2-gettext-init/jest.config.js +0 −26 Go to diff View file
M lib/frontend/vue2-gettext-init/package.json +1 −1 Go to diff View file
M lib/frontend/vue2-gettext-init/src/main.test.ts +6 −5 Go to diff View file
M lib/frontend/vue2-gettext-init/tsconfig.json +1 −2 Go to diff View file
D lib/frontend/vue3-gettext-init/jest.config.js +0 −26 Go to diff View file
M lib/frontend/vue3-gettext-init/package.json +1 −1 Go to diff View file
M lib/frontend/vue3-gettext-init/src/main.test.ts +5 −4 Go to diff View file
M lib/frontend/vue3-gettext-init/tsconfig.json +1 −2 Go to diff View file