Skip to content

refactor(react): make the promise hack explicit for older React versions #4314

refactor(react): make the promise hack explicit for older React versions

refactor(react): make the promise hack explicit for older React versions #4314

Triggered via pull request March 12, 2025 12:13
Status Failure
Total duration 2m 32s
Artifacts

test-multiple-builds.yml

on: pull_request
Matrix: test_matrix

Annotations

6 errors
test_matrix (umd, production)
Process completed with exit code 1.
test_matrix (umd, production): tests/react/async2.test.tsx#L90
TestingLibraryElementError: Unable to find an element with the text: count: 1. 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 /> </body> Ignored nodes: comments, script, style <body> <div /> </body> ❯ waitForWrapper node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27 ❯ findByText node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ tests/react/async2.test.tsx:90:18
test_matrix (cjs, production)
Process completed with exit code 1.
test_matrix (cjs, production): tests/react/async2.test.tsx#L90
TestingLibraryElementError: Unable to find an element with the text: count: 1. 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 /> </body> Ignored nodes: comments, script, style <body> <div /> </body> ❯ waitForWrapper node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27 ❯ findByText node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ tests/react/async2.test.tsx:90:18
test_matrix (esm, production)
Process completed with exit code 1.
test_matrix (esm, production): tests/react/async2.test.tsx#L90
TestingLibraryElementError: Unable to find an element with the text: count: 1. 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 /> </body> Ignored nodes: comments, script, style <body> <div /> </body> ❯ waitForWrapper node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27 ❯ findByText node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ tests/react/async2.test.tsx:90:18