https://cypress.io logo
Include coverage from micro frontend bundle
# i-need-help
w
Hello, I would like to see the code covered in on of my micro frontend but it seems that the window.__coverage__ is undefined because the micro frontend is not yet loaded (the app is loaded). The code of the micro-frontend is correctly instrumented but after debugging, I see that the support.js of cypress-coverage is execute too soon, how can I delay it ?
Just initializing the window.__coverage__ in my visit command solves the issue.