Jest+Puppeteer doesn't have access to window variables, so I cannot access the component's instance (on a global variable in my HTML test page) and check if the callback function was fired (with a
jest.fn() spy for example)
This is the component btw which the tests are for: https://yaireo.github.io/tagify
I cannot cover this only with unit-tests without a browser (puppeteer) because everything is DOM-based
Is this the right approach for testing a DOM-based web component non-visual UX side-effects?