Skip to content

Merge pull request #203 from contentstack/staging

bb0f83b
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Back merge #216

Merge pull request #203 from contentstack/staging
bb0f83b
Select commit
Loading
Failed to load commit list.
GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Nov 4, 2025 in 0s

Test suite run failed

Failed tests: 48/321. Failed suites: 1/20.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● 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)

Annotations

Check failure on line 26 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Basic functionality > should return default endpoints for valid region without service

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:27:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 35 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:36:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 41 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Basic functionality > should return EU endpoints for EU region

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:42:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 47 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Basic functionality > should return undefined for invalid service

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:48:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 55 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Region alias matching > should match region by alias "na"

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:56:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 61 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:62:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 67 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Region alias matching > should match region by alias "aws_na"

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:68:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 73 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Region alias matching > should be case insensitive for region matching

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:74:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 79 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Region alias matching > should trim whitespace from region input

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:80:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 87 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:88:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 93 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:94:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 101 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > omitHttps parameter > should preserve https when omitHttps is false

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:102:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 115 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:116:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 121 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:122:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 127 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:131:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 136 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:137:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 144 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

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

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:145:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 152 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Default parameters > should use default service "" when no service provided

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:153:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 159 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Default parameters > should use default omitHttps false when not provided

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:160:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 167 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Service-specific endpoints > should return correct application endpoint

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:168:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 173 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Service-specific endpoints > should return correct auth endpoint

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:174:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 179 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Service-specific endpoints > should return correct graphqlDelivery endpoint

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:180:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 185 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Service-specific endpoints > should return correct preview endpoint

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:186:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 191 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Service-specific endpoints > should return correct images endpoint

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:192:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 197 in __test__/endpoints.test.ts

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

getContentstackEndpoint > Service-specific endpoints > should return correct assets endpoint

Error: regions.json file not found at dist/lib/regions.json. Please ensure the package is properly installed and postinstall script has run.
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:42:9)
    at loadRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:50:21)
    at getRegions (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:114:19)
    at getDefaultEndpoint (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/src/endpoints.ts:109:12)
    at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/endpoints.test.ts:198:45)
    at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)