Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-2396

Remove @testing-library/react as direct dependency of stripes-erm-components

    XMLWordPrintable

Details

    • ERM Sprint 151, ERM Sprint 152
    • Bienenvolk
    • Not Scheduled
    • TBD

    Description

      Overview: @testing-library/react is incorrectly listed as a direct dependency in stripes-erm-components instead of as a dev-dependency.

      Details: This causes @testing-library/react and all its dependencies to be pulled into the production bundle built at the platform-level. This causes bloat and build warnings:

      warning "@folio/plugin-eusage-reports > @folio/plugin-find-eresource > @folio/stripes-testing > cypress-testrail-simple > find-cypress-specs > ts-node@10.9.1" has unmet peer dependency "@types/node@*".
      warning "@folio/plugin-eusage-reports > @folio/plugin-find-eresource > @folio/stripes-testing > cypress-testrail-simple > find-cypress-specs > ts-node@10.9.1" has unmet peer dependency "typescript@>=2.7".
      

      Expected Results: Test-related deps are included only as dev-deps.
      Actual Results: @folio/stripes-testing is listed as a direct dep.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                zburke Zak_Burke
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases