Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: enhance default-node-options.ts #87

feat: enhance default-node-options.ts

feat: enhance default-node-options.ts #87

Triggered via pull request November 4, 2025 12:49
Status Success
Total duration 6s
Artifacts

secrets-scan.yml

on: pull_request
security-secrets
4s
security-secrets
Fit to window
Zoom out
Zoom in

Annotations

1 error and 13 warnings
Node parser reference content > should convert to html when and type is reference, attrs type is entry and display-type is link: __test__/json-to-html.test.ts#L311
Error: expect(received).toEqual(expected) // deep equality Expected: "<p><a class=\"embedded-entry redactor-component block-entry\" href=\"/Test\" target=\"_self\">Embed entry as a link</a></p><p><a class=\"embedded-entry redactor-component block-entry\" href=\"undefined\" target=\"_blank\">Embed entry as a link open in new tab</a></p><ul><li><a class=\"embedded-entry redactor-component block-entry\" href=\"undefined\" target=\"_self\">Entry as a link</a></li><li><a class=\"embedded-entry redactor-component block-entry\" href=\"undefined\" target=\"_blank\">Open entry as a link in new tab</a></li><li><a class=\"embedded-entry redactor-component block-entry\" href=\"undefined\" target=\"_self\"><strong><u>Entry as a link bold</u></strong></a></li><li><a class=\"embedded-entry redactor-component block-entry\" href=\"khjgf\" target=\"_blank\"><strong><u>Open bold entry as a link in new tab </u></strong></a></li><li><a href=\"https://\" target=\"_self\"><strong><u>Link URL</u></strong></a></li><li><a href=\"https://\" target=\"_blank\"><strong><u>Open link in new tab</u></strong></a></li></ul>" Received: "<p><a class=\"embedded-entry redactor-component block-entry\" href=\"/Test\" target=\"_self\">Embed entry as a link</a></p><p><a class=\"embedded-entry redactor-component block-entry\" href=\"\" target=\"_blank\">Embed entry as a link open in new tab</a></p><ul><li><a class=\"embedded-entry redactor-component block-entry\" href=\"\" target=\"_self\">Entry as a link</a></li><li><a class=\"embedded-entry redactor-component block-entry\" href=\"\" target=\"_blank\">Open entry as a link in new tab</a></li><li><a class=\"embedded-entry redactor-component block-entry\" href=\"\" target=\"_self\"><strong><u>Entry as a link bold</u></strong></a></li><li><a class=\"embedded-entry redactor-component block-entry\" href=\"khjgf\" target=\"_blank\"><strong><u>Open bold entry as a link in new tab </u></strong></a></li><li><a href=\"https://\" target=\"_self\"><strong><u>Link URL</u></strong></a></li><li><a href=\"https://\" target=\"_blank\"><strong><u>Open link in new tab</u></strong></a></li></ul>" at /home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/json-to-html.test.ts:316:49 at Array.forEach (<anonymous>) at Object.<anonymous> (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/__test__/json-to-html.test.ts:315:30) at Promise.then.completed (/home/runner/work/contentstack-utils-javascript/contentstack-utils-javascript/node_modules/jest-circus/build/utils.js:290:26) 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 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)
🧾 Statement is not covered: src/options/default-node-options.ts#L26
Warning! Not covered statement
🌿 Branch is not covered: src/options/default-node-options.ts#L11
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L18
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L26
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L49
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L57
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L58
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L62
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L63
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L180
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L190
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L191
Warning! Not covered branch
🌿 Branch is not covered: src/options/default-node-options.ts#L192
Warning! Not covered branch