Hi!

So, might be worth raising a github issue to discuss further — but doing end-to-end tests in Jest may not be possible since (I believe?) there’s no real concept of windows in jest, or messaging between windows. Most of the time when I want to test this in more of a real-world environment I use karma/chrome-headless and construct some actual windows and frames. Given that restriction in jest, would stubbing out postRobot.on and postRobot.send not make sense?

works for PayPal, as a lead engineer in Checkout. Opinions expressed herein belong to him and not his employer. daniel@bluesuncorp.co.uk

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store