We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@testing-library/react
react
node
npm
yarn
https://github.com/chubbyphp/petstore-react/blob/master/src/__tests__/Component/Form/PetForm.test.tsx
npm test -- --watchAll
petstore-react/node_modules/@testing-library/dom/dist/wait-for.js:41 (0, _helpers.setImmediate)(() => observer.disconnect()); ^ ReferenceError: Cannot access 'observer' before initialization at Immediate.<anonymous> (/home/schreiner/Documents/webpages/petstore-react/node_modules/@testing-library/dom/dist/wait-for.js:41:49) at processImmediate (internal/timers.js:456:21) /home/schreiner/Documents/webpages/petstore-react/node_modules/@testing-library/dom/dist/wait-for.js:41 (0, _helpers.setImmediate)(() => observer.disconnect()); ^ReferenceError: Cannot access 'observer' before initialization at Immediate.<anonymous> (/home/schreiner/Documents/webpages/petstore-react/node_modules/@testing-library/dom/dist/wait-for.js:41:49) at processImmediate (internal/timers.js:456:21)
TypeError: MutationObserver is not a constructor 214 | fireEvent.click(getByTestId('submit-pet')); 215 | > 216 | await waitForElement(() => | ^ 217 | getByTestId('submit-pet') 218 | );
Run tests on: https://github.com/chubbyphp/petstore-react
This problem apears when upgrading to 10., worked well on 9.
The text was updated successfully, but these errors were encountered:
@dominikzogg looks like testing-library/dom-testing-library#477 is discussing this issue with different resolution options
Sorry, something went wrong.
@pushred thanks, adding jest-environment-jsdom-sixteen solved the issue
jest-environment-jsdom-sixteen
No branches or pull requests
@testing-library/react
version:react
version: 16.13.1node
version: 13.11.0npm
(oryarn
) version: 6.13.7Relevant code or config:
https://github.com/chubbyphp/petstore-react/blob/master/src/__tests__/Component/Form/PetForm.test.tsx
What you did:
What happened:
Reproduction:
Run tests on: https://github.com/chubbyphp/petstore-react
Problem description:
This problem apears when upgrading to 10., worked well on 9.
Suggested solution:
The text was updated successfully, but these errors were encountered: