Skip to content

Conversation

@licanhua
Copy link
Contributor

@licanhua licanhua commented Sep 15, 2022

In #7819, window.trustedTypes is used.
no matter window.trustedTypes or window?.trustedTypes, the jest always complains ReferenceError: window is not defined

So the solution is to use jsdom instead of node to simulate the browser env

Here is the error:
image

Microsoft Reviewers: Open in CodeFlow

@licanhua licanhua enabled auto-merge (squash) September 17, 2022 03:52
@licanhua licanhua merged commit acde544 into main Sep 17, 2022
@licanhua licanhua deleted the canhua/useJsDom branch September 17, 2022 04:16
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants