istanbuljs / babel-plugin-istanbul

A babel plugin that adds istanbul instrumentation to ES6 code
BSD 3-Clause "New" or "Revised" License
616 stars 72 forks source link

Getting code coverage from individual micro frontend #274

Open omkar-nath opened 2 years ago

omkar-nath commented 2 years ago

Hi, Apologies If I am lacking any understanding.

I instrumented our micro-frontend code. But when I am testing it in the shell layer, I am getting error that the the code is not instrumented. The reason which I can think of for this is till the time I navigate to my microfrontend using cy.visit the '@cypress/code-coverage/' plugin already started searching for the global.coverage variable which is not available currently and it only gets set when we visit our microfrontend app.