Skip to content

Conversation

fragreco01
Copy link
Collaborator

Description

List of Changes

Motivation and Context

How Has This Been Tested?

  • Pre-Deploy Test
    • Unit
    • Integration (Narrow)
  • Post-Deploy Test
    • Isolated Microservice
    • Broader Integration
    • Acceptance
    • Performance & Load

Types of changes

  • PATCH - Bug fix (backwards compatible bug fixes)
  • MINOR - New feature (add functionality in a backwards compatible manner)
  • MAJOR - Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@fragreco01 fragreco01 requested review from a team and dariopelliccioli as code owners October 16, 2025 14:35
@fragreco01 fragreco01 changed the base branch from main to develop October 16, 2025 14:35
Copy link

github-actions bot commented Oct 16, 2025

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/usr/local/bin/yarn' failed with exit code 1
St.
Category Percentage Covered / Total
🟢 Statements
82.41% (-3.76% 🔻)
1570/1905
🟡 Branches
74.32% (-3.9% 🔻)
958/1289
🟡 Functions
79.66% (-5.56% 🔻)
419/526
🟢 Lines
83.13% (-3.77% 🔻)
1498/1802
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / FooterConfig.tsx
0% 100% 100% 0%
🔴
... / Footer.tsx
0% 0% 0% 0%
🔴
... / CustomHeader.tsx
0% 0% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / partiesSlice.ts
45.45% (-18.18% 🔻)
100%
0% (-33.33% 🔻)
45.45% (-18.18% 🔻)
🔴
... / Header.tsx
0% (-82.61% 🔻)
0% (-64.71% 🔻)
0% (-66.67% 🔻)
0% (-80.95% 🔻)
🔴
... / TOSLayout.tsx
0% (-100% 🔻)
100%
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / Layout.tsx
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)

Test suite run failed

Failed tests: 2/696. Failed suites: 4/76.
  ● Test suite failed to run

    TypeError: Cannot read properties of undefined (reading 'LINK')

      57 |   id: 'prod-selfcare',
      58 |   title: 'Area Riservata',
    > 59 |   productUrl: ENV.HEADER.LINK.PRODUCTURL,
         |                          ^
      60 |   linkType: 'internal',
      61 | };
      62 | const rootLink: RootLinkType = {

      at Object.<anonymous> (src/components/Header/CustomHeader.tsx:59:26)
      at Object.<anonymous> (src/components/Header/Header.tsx:14:1)
      at Object.<anonymous> (src/components/Header/__tests__/Header.test.tsx:2:1)


  ● Test suite failed to run

    TypeError: Cannot read properties of undefined (reading 'LINK')

      3 |
      4 | export const pagoPALink: CompanyLinkType = {
    > 5 |     href: ENV.FOOTER.LINK.PAGOPALINK,
        |                      ^
      6 |     ariaLabel: 'Link: vai al sito di PagoPA S.p.A.',
      7 | };
      8 |

      at Object.<anonymous> (src/components/Footer/FooterConfig.tsx:5:22)
      at Object.<anonymous> (src/components/Footer/Footer.tsx:11:1)
      at Object.<anonymous> (src/components/Layout/Layout.tsx:16:1)
      at Object.<anonymous> (src/components/Layout/__tests__/Layout.test.tsx:113:1)


  ● ENV config › should fallback PUBLIC_URL to default if undefined

    TypeError: Cannot read properties of undefined (reading 'asString')

      67 |     LINK: {
      68 |       PAGOPALINK: 'https://www.pagopa.it/',
    > 69 |       PRIVACYPOLICY: env.get('REACT_APP_URL_PRIVACY_DISCLAIMER').asString(),
         |                                                                 ^
      70 |       TERMSANDCONDITIONS: env.get('REACT_APP_URL_TERMS_AND_CONDITIONS').asString(),
      71 |       PROTECTIONOFPERSONALDATA:
      72 |           'https://privacyportal-de.onetrust.com/webform/77f17844-04c3-4969-a11d-462ee77acbe1/9ab6533d-be4a-482e-929a-0d8d2ab29df8',

      at Object.<anonymous> (src/utils/env.ts:69:65)
      at Object.<anonymous> (src/utils/__tests__/env.test.ts:120:25)

  ● ENV config › should use PUBLIC_URL from env if defined

    TypeError: Cannot read properties of undefined (reading 'asString')

      67 |     LINK: {
      68 |       PAGOPALINK: 'https://www.pagopa.it/',
    > 69 |       PRIVACYPOLICY: env.get('REACT_APP_URL_PRIVACY_DISCLAIMER').asString(),
         |                                                                 ^
      70 |       TERMSANDCONDITIONS: env.get('REACT_APP_URL_TERMS_AND_CONDITIONS').asString(),
      71 |       PROTECTIONOFPERSONALDATA:
      72 |           'https://privacyportal-de.onetrust.com/webform/77f17844-04c3-4969-a11d-462ee77acbe1/9ab6533d-be4a-482e-929a-0d8d2ab29df8',

      at Object.<anonymous> (src/utils/env.ts:69:65)
      at Object.<anonymous> (src/utils/__tests__/env.test.ts:147:25)


  ● Test suite failed to run

    TypeError: Cannot read properties of undefined (reading 'LINK')

      57 |   id: 'prod-selfcare',
      58 |   title: 'Area Riservata',
    > 59 |   productUrl: ENV.HEADER.LINK.PRODUCTURL,
         |                          ^
      60 |   linkType: 'internal',
      61 | };
      62 | const rootLink: RootLinkType = {

      at Object.<anonymous> (src/components/Header/CustomHeader.tsx:59:26)
      at Object.<anonymous> (src/components/Header/Header.tsx:14:1)
      at Object.<anonymous> (src/components/TOSLayout/TOSLayout.tsx:8:1)
      at Object.<anonymous> (src/components/TOSLayout/__tests__/TOSLayout.test.tsx:2:1)

Report generated by 🧪jest coverage report action from 4d8e35c

@stedelia stedelia merged commit ddab904 into develop Oct 16, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants