cypress-io / instrument-cra

Little module for CRA applications to instrument code without ejecting react-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to instrument the files which are outside /app folder

kkgowtamasa opened this issue · comments

I have created a new react-app using react-scripts and my folder structure will be like this:

/online-shopping
/online-shopping/kick-start
      package.json (start: start-react-scripts -r @cypress/instrument-cra start)
/online-shopping/features

the kick-start folder contains the basic structure of the app but all the mega menu items and sub-features reside inside /features which is parallel to the kick-start folder.
Now when I try to instrument the code it's covering only files that are residing inside /kick-start but it's not instrumenting the files which are inside /features.
I have tried to add them using "nyc" : {include : ["../online-shopping/features"]} but it didn't work

@bahmutov can you suggest!

Can you please create a tiny repo reproducing the problem. Otherwise, I have no idea how you set up your dependencies, how you run, etc.