Closed lacolaco closed 1 month ago
Uh oh! @lacolaco, the image you shared is missing helpful alt text. Check your issue body.
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.
Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
@testing-library/dom
version: v10.3.0Relevant code or config:
What you did:
I wrote a spec which throws an error by
getByXXX
and ran on a browser.What happened:
Since #1321, DTL cannot report an assertion error with DOM element due to illegal access to
process
.https://github.com/testing-library/dom-testing-library/pull/1321
Until v10.2.0,
typeof process !== "undefined"
has been prevented this situation.Reproduction:
Problem description:
Suggested solution:
typeof
guard before accessingprocess
.