Skip to content

Fix/dx 3674 improve test coverage #391

Fix/dx 3674 improve test coverage

Fix/dx 3674 improve test coverage #391

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Nov 1, 2025 in 0s

Test suite run failed

Failed tests: 8/635. Failed suites: 18/51.

Details

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

  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/entry-queryables.spec.ts:7:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/entry-variants.spec.ts:4:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/image-delivery-comprehensive.spec.ts:4:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/synchronization.spec.ts:4:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/global-fields-comprehensive.spec.ts:4:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/entries.spec.ts:12:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/metadata-branch-operations.spec.ts:4:28)


  ● Live preview tests › should check for values initialized

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at Object.<anonymous> (test/api/live-preview.spec.ts:18:32)

  ● Live preview tests › should check host when live preview is enabled and management token is provided

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at Object.<anonymous> (test/api/live-preview.spec.ts:31:32)

  ● Live preview tests › should check host when live preview is disabled and management token is provided

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at Object.<anonymous> (test/api/live-preview.spec.ts:50:32)

  ● Live preview tests › should check host when live preview is enabled and preview token is provided

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at Object.<anonymous> (test/api/live-preview.spec.ts:68:32)

  ● Live preview tests › should check host when live preview is disabled and preview token is provided

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at Object.<anonymous> (test/api/live-preview.spec.ts:87:32)

  ● Live preview query Entry API tests › should check for entry when live preview is enabled with management token

    expect(received).toBeDefined()

    Received: undefined

      133 |       expect(error).toBeDefined();
      134 |       // AxiosError: error.response contains the response object
    > 135 |       expect(error.response).toBeDefined();
          |                              ^
      136 |       expect(error.response.status).toEqual(403);
      137 |     }
      138 |   });

      at Object.<anonymous> (test/api/live-preview.spec.ts:135:30)

  ● Live preview query Entry API tests › should check for entry is when live preview is disabled with management token

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at Object.<anonymous> (test/api/live-preview.spec.ts:141:32)

  ● Live preview query Entry API tests › should check for entry is when live preview is disabled with preview token

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at Object.<anonymous> (test/api/live-preview.spec.ts:168:32)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/asset-query.spec.ts:8:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/query-encoding.spec.ts:5:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/asset.spec.ts:11:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/taxonomy-query.spec.ts:9:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/query.spec.ts:5:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/entry.spec.ts:6:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/pagination.spec.ts:4:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/contenttype-query.spec.ts:6:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/contenttype.spec.ts:10:28)


  ● Test suite failed to run

    API key for Stack is required.

      51 |     defaultConfig.headers.api_key = config.apiKey;
      52 |   } else {
    > 53 |     throw new Error('API key for Stack is required.');
         |           ^
      54 |   }
      55 |   if (config.deliveryToken) {
      56 |     defaultConfig.headers.access_token = config.deliveryToken;

      at Object.stack (src/lib/contentstack.ts:53:11)
      at stackInstance (test/utils/stack-instance.ts:20:23)
      at Object.<anonymous> (test/api/stack.spec.ts:3:28)

Annotations

Check failure on line 17 in test/api/live-preview.spec.ts

See this annotation in the file changed.

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

Live preview tests > should check for values initialized

Error: API key for Stack is required.
    at Object.stack (/home/runner/work/contentstack-typescript/contentstack-typescript/src/lib/contentstack.ts:53:11)
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/api/live-preview.spec.ts:18:32)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 30 in test/api/live-preview.spec.ts

See this annotation in the file changed.

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

Live preview tests > should check host when live preview is enabled and management token is provided

Error: API key for Stack is required.
    at Object.stack (/home/runner/work/contentstack-typescript/contentstack-typescript/src/lib/contentstack.ts:53:11)
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/api/live-preview.spec.ts:31:32)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 49 in test/api/live-preview.spec.ts

See this annotation in the file changed.

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

Live preview tests > should check host when live preview is disabled and management token is provided

Error: API key for Stack is required.
    at Object.stack (/home/runner/work/contentstack-typescript/contentstack-typescript/src/lib/contentstack.ts:53:11)
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/api/live-preview.spec.ts:50:32)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 67 in test/api/live-preview.spec.ts

See this annotation in the file changed.

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

Live preview tests > should check host when live preview is enabled and preview token is provided

Error: API key for Stack is required.
    at Object.stack (/home/runner/work/contentstack-typescript/contentstack-typescript/src/lib/contentstack.ts:53:11)
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/api/live-preview.spec.ts:68:32)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 86 in test/api/live-preview.spec.ts

See this annotation in the file changed.

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

Live preview tests > should check host when live preview is disabled and preview token is provided

Error: API key for Stack is required.
    at Object.stack (/home/runner/work/contentstack-typescript/contentstack-typescript/src/lib/contentstack.ts:53:11)
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/api/live-preview.spec.ts:87:32)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 106 in test/api/live-preview.spec.ts

See this annotation in the file changed.

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

Live preview query Entry API tests > should check for entry when live preview is enabled with management token

Error: expect(received).toBeDefined()

Received: undefined
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/api/live-preview.spec.ts:135:30)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 140 in test/api/live-preview.spec.ts

See this annotation in the file changed.

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

Live preview query Entry API tests > should check for entry is when live preview is disabled with management token

Error: API key for Stack is required.
    at Object.stack (/home/runner/work/contentstack-typescript/contentstack-typescript/src/lib/contentstack.ts:53:11)
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/api/live-preview.spec.ts:141:32)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 167 in test/api/live-preview.spec.ts

See this annotation in the file changed.

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

Live preview query Entry API tests > should check for entry is when live preview is disabled with preview token

Error: API key for Stack is required.
    at Object.stack (/home/runner/work/contentstack-typescript/contentstack-typescript/src/lib/contentstack.ts:53:11)
    at Object.<anonymous> (/home/runner/work/contentstack-typescript/contentstack-typescript/test/api/live-preview.spec.ts:168:32)
    at Promise.then.completed (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/contentstack-typescript/contentstack-typescript/node_modules/jest-runner/build/testWorker.js:106:12)