stable

Clone or download

Read-only

Replace relative imports of jest configuration with a package import

Part of request #26381: Prevent relative imports outside of a package No functional change Change-Id: I882ef71c7768312584e0c739b18c09b2ca9fe8c6

Modified Files

Name
M .eslintrc.js +6 −2 Go to diff View file
M lib/frontend/angular-tlp/jest.config.js +2 −3 Go to diff View file
M lib/frontend/angular-tlp/src/tlp-modal-service.test.js +1 −1 Go to diff View file
A lib/frontend/build-system-configurator/src/jest/angular-promise-wrapper.ts +44 −0 Go to diff View file
R tests/jest/babel-jest-process.js Go to diff View file
R tests/jest/babel.config.js Go to diff View file
R tests/jest/jest.base.config.js Go to diff View file
R tests/jest/fail-console-error-warning.js Go to diff View file
R tests/jest/fail-unhandled-promise-rejection.js Go to diff View file
M lib/frontend/build-system-configurator/src/main.ts +2 −0 Go to diff View file
M lib/frontend/build-system-configurator/tsconfig-build.json +3 −2 Go to diff View file
M lib/frontend/ckeditor-image-upload/jest.config.js +3 −4 Go to diff View file
M lib/frontend/concurrency-limit-pool/jest.config.js +2 −1 Go to diff View file
M lib/frontend/date-helper/jest.config.js +2 −3 Go to diff View file
M lib/frontend/drag-and-drop/jest.config.js +2 −3 Go to diff View file
M lib/frontend/fault/jest.config.js +2 −1 Go to diff View file
M lib/frontend/filter-table/jest.config.js +2 −3 Go to diff View file
M lib/frontend/keyboard-shortcuts/jest.config.js +2 −3 Go to diff View file
M lib/frontend/link-selector/jest.config.js +2 −3 Go to diff View file
M lib/frontend/list-picker/jest.config.js +2 −3 Go to diff View file
M lib/frontend/po-gettext-plugin/jest.config.js +2 −2 Go to diff View file
M lib/frontend/po-gettext-plugin/package.json +1 −0 Go to diff View file
M lib/frontend/po-gettext-plugin/pnpm-lock.yaml +2 −0 Go to diff View file
M lib/frontend/project-privacy-helper/jest.config.js +2 −2 Go to diff View file
M lib/frontend/project-sidebar-internal/jest.config.js +3 −3 Go to diff View file
M lib/frontend/project-sidebar/jest.config.js +2 −2 Go to diff View file
M lib/frontend/tlp-fetch/jest.config.js +2 −1 Go to diff View file
M lib/frontend/tlp-modal/jest.config.js +2 −1 Go to diff View file
M lib/frontend/tlp-popovers/jest.config.js +2 −3 Go to diff View file
M lib/frontend/vue-breadcrumb-privacy/jest.config.js +3 −3 Go to diff View file
M lib/frontend/vue2-gettext-composition-helpers/jest.config.js +2 −2 Go to diff View file
M lib/frontend/vue3-gettext-init/jest.config.js +2 −2 Go to diff View file
M plugins/agiledashboard/scripts/administration/jest.config.js +2 −3 Go to diff View file
M plugins/agiledashboard/scripts/artifact-additional-action/jest.config.js +2 −3 Go to diff View file
M plugins/agiledashboard/scripts/kanban/jest.config.js +3 −4 Go to diff View file
M plugins/agiledashboard/scripts/kanban/package.json +1 −0 Go to diff View file
M plugins/agiledashboard/scripts/kanban/pnpm-lock.yaml +2 −0 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/dropped-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/jwt/jwt-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/kanban-item/kanban-item-rest-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/kanban-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/reports-modal/diagram-rest-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/kanban/src/app/user-preferences/user-preferences-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/lib/card-fields/jest.config.js +3 −4 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/jest.config.js +3 −4 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/package.json +1 −0 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/pnpm-lock.yaml +2 −0 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/backlog-item-collection/backlog-item-collection-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/backlog-item-rest/backlog-item-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/backlog/backlog-controller.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/drop/dropped-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/milestone-rest/milestone-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/project/project-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/user-preferences/user-preferences-service.test.js +1 −1 Go to diff View file
M plugins/agiledashboard/scripts/shared/jest.config.js +2 −3 Go to diff View file
M plugins/baseline/jest.config.js +2 −1 Go to diff View file
M plugins/crosstracker/jest.config.js +2 −1 Go to diff View file
M plugins/docman/jest.config.js +2 −1 Go to diff View file
M plugins/document/jest.config.js +4 −5 Go to diff View file
M plugins/document_generation/jest.config.js +3 −4 Go to diff View file
M plugins/document_generation/scripts/lib/docx/jest.config.js +2 −1 Go to diff View file
M plugins/document_generation/scripts/lib/xlsx/jest.config.js +2 −1 Go to diff View file
M plugins/embed/jest.config.js +2 −2 Go to diff View file
M plugins/forumml/jest.config.js +2 −1 Go to diff View file
M plugins/frs/jest.config.js +3 −3 Go to diff View file
M plugins/frs/scripts/release-notes/src/release/release-controller.test.js +1 −1 Go to diff View file
M plugins/frs/scripts/release-notes/src/release/release-rest-service.test.js +1 −1 Go to diff View file
M plugins/git/jest.config.js +2 −1 Go to diff View file
M plugins/gitlab/jest.config.js +2 −1 Go to diff View file
M plugins/label/jest.config.js +2 −1 Go to diff View file
M plugins/oauth2_server/jest.config.js +2 −2 Go to diff View file
M plugins/program_management/jest.config.js +2 −2 Go to diff View file
M plugins/projectmilestones/jest.config.js +2 −2 Go to diff View file
M plugins/pullrequest/jest.config.js +3 −3 Go to diff View file
M plugins/pullrequest/scripts/src/app/dashboard/pull-request-collection-rest-service.test.js +1 −1 Go to diff View file
M plugins/pullrequest/scripts/src/app/dashboard/pull-request-collection-service.test.js +1 −1 Go to diff View file
M plugins/pullrequest/scripts/src/app/overview/reviewers/reviewers-service.test.js +1 −1 Go to diff View file
M plugins/pullrequest/scripts/src/app/pull-request/pull-request-rest-service.test.js +1 −1 Go to diff View file
M plugins/pullrequest/scripts/src/app/user-rest-service.test.js +1 −1 Go to diff View file
M plugins/roadmap/jest.config.js +2 −1 Go to diff View file
M plugins/taskboard/jest.config.js +3 −3 Go to diff View file
M plugins/testmanagement/jest.config.js +3 −3 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/artifact-links-graph/artifact-links-graph-rest-service.test.js +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/campaign/campaign-edit-controller.test.js +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/campaign/campaign-list-controller.test.js +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/campaign/campaign-service.test.js +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/definition/definition-service.test.js +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution-collection/execution-rest-service.test.js +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution-collection/execution-service.test.js +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution-link-issue-controller.test.js +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/jwt/jwt-service.test.js +1 −1 Go to diff View file
M plugins/testplan/jest.config.js +3 −3 Go to diff View file
M plugins/timetracking/jest.config.js +2 −2 Go to diff View file
M plugins/tracker/scripts/artifact-action-buttons/jest.config.js +2 −2 Go to diff View file
M plugins/tracker/scripts/artifact/jest.config.js +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/jest.config.js +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/jest.config.js +3 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/link-field/link-field-controller.test.js +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-service.test.js +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/jest.config.js +2 −1 Go to diff View file
M plugins/tracker/scripts/semantics/progress/jest.config.js +2 −2 Go to diff View file
M plugins/tracker/scripts/semantics/timeframe/jest.config.js +2 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/jest.config.js +3 −3 Go to diff View file
M plugins/tracker/scripts/workflow-transitions/jest.config.js +2 −2 Go to diff View file
M src/jest.config.js +3 −3 Go to diff View file
M src/themes/tlp/jest.config.js +2 −3 Go to diff View file
M src/themes/tlp/package.json +1 −0 Go to diff View file
M src/themes/tlp/pnpm-lock.yaml +2 −0 Go to diff View file
D tests/jest/angular-promise-wrapper.js +0 −30 Go to diff View file
M tests/jest/jest.projects-plugins.config.js +2 −2 Go to diff View file