Frontend Pairing - Discovering missing JSDOM APIs that didn’t allow to test Toast UI in jest

Опубликовано: 01 Январь 1970
на канале: GitLab Unfiltered
135
1

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.