Skip to content

Conversation

@nadeem-cs
Copy link
Contributor

DX | 29-10-2025 | Release

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

We regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the development branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch.

@nadeem-cs nadeem-cs changed the title Merge pull request #203 from contentstack/staging Back merge Nov 4, 2025
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🟢 Statements
92.34% (-6.41% 🔻)
591/640
🟢 Branches
83.33% (-4.13% 🔻)
525/630
🟢 Functions
95.74% (-4.26% 🔻)
135/141
🟢 Lines
92.54% (-6.44% 🔻)
546/590
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴 endpoints.ts
31.25% (-64.06% 🔻)
13.16% (-68.42% 🔻)
40% (-60% 🔻)
29.31% (-65.52% 🔻)

Test suite run failed

Failed tests: 48/321. Failed suites: 1/20.
  ● getContentstackEndpoint › Basic functionality › should return default endpoints for valid region without service

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:27:45)

  ● getContentstackEndpoint › Basic functionality › should return specific service endpoint for valid region and service

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:36:45)

  ● getContentstackEndpoint › Basic functionality › should return EU endpoints for EU region

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:42:45)

  ● getContentstackEndpoint › Basic functionality › should return undefined for invalid service

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:48:45)

  ● getContentstackEndpoint › Region alias matching › should match region by alias "na"

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:56:45)

  ● getContentstackEndpoint › Region alias matching › should match region by alias "aws-na"

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:62:45)

  ● getContentstackEndpoint › Region alias matching › should match region by alias "aws_na"

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:68:45)

  ● getContentstackEndpoint › Region alias matching › should be case insensitive for region matching

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:74:45)

  ● getContentstackEndpoint › Region alias matching › should trim whitespace from region input

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:80:45)

  ● getContentstackEndpoint › omitHttps parameter › should strip https from string endpoint when omitHttps is true

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:88:45)

  ● getContentstackEndpoint › omitHttps parameter › should strip https from all endpoints when omitHttps is true and no service specified

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:94:45)

  ● getContentstackEndpoint › omitHttps parameter › should preserve https when omitHttps is false

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:102:45)

  ● getContentstackEndpoint › Error handling and edge cases › should return default endpoint for invalid region

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:116:45)

  ● getContentstackEndpoint › Error handling and edge cases › should return default endpoint for region with underscores/dashes

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:122:45)

  ● getContentstackEndpoint › Error handling and edge cases › should handle malformed regions data gracefully

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:131:45)

  ● getContentstackEndpoint › Error handling and edge cases › should fallback to default when region is not found

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:137:45)

  ● getContentstackEndpoint › Default parameters › should use default region "us" when no region provided

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:145:45)

  ● getContentstackEndpoint › Default parameters › should use default service "" when no service provided

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:153:45)

  ● getContentstackEndpoint › Default parameters › should use default omitHttps false when not provided

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:160:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct application endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:168:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct auth endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:174:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct graphqlDelivery endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:180:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct preview endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:186:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct images endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:192:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct assets endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:198:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct automate endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:204:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct launch endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:210:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct developerHub endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:216:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct brandKit endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:222:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct genAI endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:228:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct personalize endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:234:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct personalizeEdge endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:240:45)

  ● getContentstackEndpoint › Different regions › should return correct EU endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:248:45)

  ● getContentstackEndpoint › Different regions › should return correct Azure NA endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:254:45)

  ● getContentstackEndpoint › Different regions › should return correct GCP NA endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:260:45)

  ● getContentstackEndpoint › Additional regions and aliases › should return correct Australia endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:268:45)

  ● getContentstackEndpoint › Additional regions and aliases › should match Australia region by alias "aws-au"

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:274:45)

  ● getContentstackEndpoint › Additional regions and aliases › should return correct Azure EU endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:280:45)

  ● getContentstackEndpoint › Additional regions and aliases › should return correct GCP EU endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:286:45)

  ● getContentstackEndpoint › Additional regions and aliases › should match Azure region by underscore alias

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:292:45)

  ● getContentstackEndpoint › Additional regions and aliases › should match GCP region by underscore alias

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:298:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle null region gracefully

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:306:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle undefined region gracefully

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:312:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle region with only whitespace

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:318:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle region with special characters

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:324:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle very long region name

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:331:45)

  ● getContentstackEndpoint › Console warnings › should warn for invalid region

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:343:30)

  ● getContentstackEndpoint › Console warnings › should warn for failed endpoint fetch

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:349:30)

Report generated by 🧪jest coverage report action from bb0f83b

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🟢 Statements
92.34% (-6.41% 🔻)
591/640
🟢 Branches
83.33% (-4.13% 🔻)
525/630
🟢 Functions
95.74% (-4.26% 🔻)
135/141
🟢 Lines
92.54% (-6.44% 🔻)
546/590
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴 endpoints.ts
31.25% (-64.06% 🔻)
13.16% (-68.42% 🔻)
40% (-60% 🔻)
29.31% (-65.52% 🔻)

Test suite run failed

Failed tests: 48/321. Failed suites: 1/20.
  ● getContentstackEndpoint › Basic functionality › should return default endpoints for valid region without service

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:27:45)

  ● getContentstackEndpoint › Basic functionality › should return specific service endpoint for valid region and service

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:36:45)

  ● getContentstackEndpoint › Basic functionality › should return EU endpoints for EU region

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:42:45)

  ● getContentstackEndpoint › Basic functionality › should return undefined for invalid service

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:48:45)

  ● getContentstackEndpoint › Region alias matching › should match region by alias "na"

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:56:45)

  ● getContentstackEndpoint › Region alias matching › should match region by alias "aws-na"

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:62:45)

  ● getContentstackEndpoint › Region alias matching › should match region by alias "aws_na"

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:68:45)

  ● getContentstackEndpoint › Region alias matching › should be case insensitive for region matching

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:74:45)

  ● getContentstackEndpoint › Region alias matching › should trim whitespace from region input

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:80:45)

  ● getContentstackEndpoint › omitHttps parameter › should strip https from string endpoint when omitHttps is true

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:88:45)

  ● getContentstackEndpoint › omitHttps parameter › should strip https from all endpoints when omitHttps is true and no service specified

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:94:45)

  ● getContentstackEndpoint › omitHttps parameter › should preserve https when omitHttps is false

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:102:45)

  ● getContentstackEndpoint › Error handling and edge cases › should return default endpoint for invalid region

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:116:45)

  ● getContentstackEndpoint › Error handling and edge cases › should return default endpoint for region with underscores/dashes

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:122:45)

  ● getContentstackEndpoint › Error handling and edge cases › should handle malformed regions data gracefully

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:131:45)

  ● getContentstackEndpoint › Error handling and edge cases › should fallback to default when region is not found

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:137:45)

  ● getContentstackEndpoint › Default parameters › should use default region "us" when no region provided

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:145:45)

  ● getContentstackEndpoint › Default parameters › should use default service "" when no service provided

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:153:45)

  ● getContentstackEndpoint › Default parameters › should use default omitHttps false when not provided

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:160:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct application endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:168:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct auth endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:174:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct graphqlDelivery endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:180:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct preview endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:186:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct images endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:192:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct assets endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:198:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct automate endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:204:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct launch endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:210:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct developerHub endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:216:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct brandKit endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:222:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct genAI endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:228:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct personalize endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:234:45)

  ● getContentstackEndpoint › Service-specific endpoints › should return correct personalizeEdge endpoint

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:240:45)

  ● getContentstackEndpoint › Different regions › should return correct EU endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:248:45)

  ● getContentstackEndpoint › Different regions › should return correct Azure NA endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:254:45)

  ● getContentstackEndpoint › Different regions › should return correct GCP NA endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:260:45)

  ● getContentstackEndpoint › Additional regions and aliases › should return correct Australia endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:268:45)

  ● getContentstackEndpoint › Additional regions and aliases › should match Australia region by alias "aws-au"

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:274:45)

  ● getContentstackEndpoint › Additional regions and aliases › should return correct Azure EU endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:280:45)

  ● getContentstackEndpoint › Additional regions and aliases › should return correct GCP EU endpoints

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:286:45)

  ● getContentstackEndpoint › Additional regions and aliases › should match Azure region by underscore alias

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:292:45)

  ● getContentstackEndpoint › Additional regions and aliases › should match GCP region by underscore alias

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:298:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle null region gracefully

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:306:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle undefined region gracefully

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:312:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle region with only whitespace

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:318:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle region with special characters

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:324:45)

  ● getContentstackEndpoint › Edge cases and error scenarios › should handle very long region name

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:331:45)

  ● getContentstackEndpoint › Console warnings › should warn for invalid region

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:343:30)

  ● getContentstackEndpoint › Console warnings › should warn for failed endpoint fetch

    regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.

      40 |   
      41 |   // If not found, throw clear error
    > 42 |   throw new Error('regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.');
         |         ^
      43 | }
      44 |
      45 | // Cache the loaded regions data

      at loadRegions (src/endpoints.ts:42:9)
      at loadRegions (src/endpoints.ts:50:21)
      at getRegions (src/endpoints.ts:114:19)
      at getDefaultEndpoint (src/endpoints.ts:109:12)
      at Object.<anonymous> (__test__/endpoints.test.ts:349:30)

Report generated by 🧪jest coverage report action from bb0f83b

@harshithad0703 harshithad0703 merged commit d9a88f5 into staging Nov 4, 2025
11 of 19 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.

3 participants