Uploaded image for project: 'ui-orders'
  1. ui-orders
  2. UIOR-997

Github Actions: Test failures with both node v14 and v16 in Github Actions CI

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • 3.3.0
    • None
    • ACQ Sprint 146
    • 1
    • Thunderjet
    • TBD

    Description

      Github Actions pipeline the yarn test step fails with the following error log for Node v14

      Summary of all failing tests
      4042FAIL src/components/POLine/Item/ItemForm.test.js
      4043  ● ItemForm › should call onChangeField when 'ContributorForm'
      40444045    TypeError: Cannot read property 'forEach' of undefined
      40464047      111 |       } else {
      4048      112 |         change('instanceId', null);
      4049    > 113 |         locations.forEach((_, i) => change(`locations[${i}].holdingId`, null));
      4050          |                   ^
      4051      114 |       }
      4052      115 |     });
      4053      116 |   };
      40544055      at src/components/POLine/Item/ItemForm.js:113:19
      4056      at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:516:19)
      405740584059Test Suites: 1 failed, 199 passed, 200 total
      4060Tests:       1 failed, 470 passed, 471 total
      4061Snapshots:   0 total
      4062Time:        196.943 s
      4063Ran all test suites.
      4064error Command failed with exit code 1.
      4065info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      4066error Command failed with exit code 1.
      4067info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      4068Error: Process completed with exit code 1. 

      The detailed test error logs can be found here

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Andrei Shumski2 Andrei Shumski
                ankitasen Ankita Sen
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases