Skip to content

feat: Code Block Component #41

feat: Code Block Component

feat: Code Block Component #41

Triggered via pull request October 6, 2025 04:38
Status Failure
Total duration 1m 10s
Artifacts

tests.yml

on: pull_request
Matrix: test-and-lint
Fit to window
Zoom out
Zoom in

Annotations

5 errors
test-and-lint (20.x)
Process completed with exit code 1.
components/code-block/__tests__/code-block.test.tsx > CodeBlock > renders with custom language: packages/raystack/components/code-block/__tests__/code-block.test.tsx#L66
TestingLibraryElementError: Unable to find an element with the text: /def hello/. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="_container_eea751" > <div class="_content_eea751" > <div class="_codeContent_eea751" > <pre class="_theme_ad767a _pre_eea751 prism-code language-python" > <div class="token-line" > <span class="_lineNumber_eea751" > 1 </span> <span class="_lineContent_eea751" > <span class="token keyword" > def </span> <span class="token plain" > </span> <span class="token function" > hello </span> <span class="token punctuation" > ( </span> <span class="token punctuation" > ) </span> <span class="token punctuation" > : </span> <span class="token plain" /> </span> </div> <div class="token-line" > <span class="_lineNumber_eea751" > 2 </span> <span class="_lineContent_eea751" > <span class="token plain" > </span> <span class="token keyword" > print </span> <span class="token punctuation" > ( </span> <span class="token string" > "Hello, world!" </span> <span class="token punctuation" > ) </span> </span> </div> </pre> </div> </div> </div> </div> </body> ❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/config.js:37:19 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ components/code-block/__tests__/code-block.test.tsx:66:19
test-and-lint (18.x)
The operation was canceled.
components/code-block/__tests__/code-block.test.tsx > CodeBlock > renders with custom language: packages/raystack/components/code-block/__tests__/code-block.test.tsx#L66
TestingLibraryElementError: Unable to find an element with the text: /def hello/. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="_container_eea751" > <div class="_content_eea751" > <div class="_codeContent_eea751" > <pre class="_theme_ad767a _pre_eea751 prism-code language-python" > <div class="token-line" > <span class="_lineNumber_eea751" > 1 </span> <span class="_lineContent_eea751" > <span class="token keyword" > def </span> <span class="token plain" > </span> <span class="token function" > hello </span> <span class="token punctuation" > ( </span> <span class="token punctuation" > ) </span> <span class="token punctuation" > : </span> <span class="token plain" /> </span> </div> <div class="token-line" > <span class="_lineNumber_eea751" > 2 </span> <span class="_lineContent_eea751" > <span class="token plain" > </span> <span class="token keyword" > print </span> <span class="token punctuation" > ( </span> <span class="token string" > "Hello, world!" </span> <span class="token punctuation" > ) </span> </span> </div> </pre> </div> </div> </div> </div> </body> ❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/config.js:37:19 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ components/code-block/__tests__/code-block.test.tsx:66:19
test-and-lint (18.x)
The strategy configuration was canceled because "test-and-lint._20_x" failed