youtube image
From YouTube: Frontend Pairing - Discovering missing JSDOM APIs that didn’t allow to test Toast UI in jest

Description

In this frontend pairs session, we investigate why writing tests that use the Toast UI dependency fail in jest. We discovered that we could remove some DOM API stubs because JSDOM already provides those APIs in the currrent version. We also had to stub others like some methods in the DOMRange class.