Uploaded image for project: 'ui-finance'
  1. ui-finance
  2. UIF-400

Github Actions: The yarn test step fails on updgrading Node to version 16 LTS

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • None
    • None
    • None
    • TBD

    Description

      On upgrading Node to v16 LTS in Github Actions pipeline the yarn test step fails with the following error log:

      /home/runner/work/ui-finance/ui-finance/node_modules/@***/stripes-acq-components/lib/utils/getAmountWithCurrency.js:11
      1170  return Intl.NumberFormat(locale, {
      1171              ^
      11721173TypeError: Currency code is required with currency style.
      1174    at Intl.NumberFormat (<anonymous>)
      1175    at getAmountWithCurrency (/home/runner/work/ui-finance/ui-finance/node_modules/@***/stripes-acq-components/lib/utils/getAmountWithCurrency.js:11:15)
      1176    at _callee$ (/home/runner/work/ui-finance/ui-finance/src/Transactions/CreateTransaction/CreateTransactionContainer.js:734:37)
      1177    at tryCatch (/home/runner/work/ui-finance/ui-finance/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:86:17)
      1178    at Generator._invoke (/home/runner/work/ui-finance/ui-finance/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:66:24)
      1179    at Generator.next (/home/runner/work/ui-finance/ui-finance/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:117:21)
      1180    at asyncGeneratorStep (/home/runner/work/ui-finance/ui-finance/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      1181    at _next (/home/runner/work/ui-finance/ui-finance/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
      1182error Command failed with exit code 1.
      1183info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      1184error Command failed with exit code 1.
      1185info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      1186Error: Process completed with exit code 1. 

      The detailed test error logs can be found here

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                ankitasen Ankita Sen
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases