I use karma to unit test my angular 2 application. I have a directory structure -
└── src/ ├── index.js ├── index.js.text ├── index.test.js ├── README.txt ├── startuptest.js ├── lib/ | ├── util.js | ├── util.test.js | └── filters/ | ├── kalman.js | └── lowpass.js ├── test/ | ├── main.js | └── lib/ | ├── filters.js | └── util.js └── vendor/ ├── jquery.js └── three/ ├── three.js └── three.fps.js
I want to exclude all files under mine
src/lib/!(filters)/**
from the coverage report. But I want to save all the files from the rest of the directory
I tried,
{src/**, src/lib/!(filters)/**}/!(*.spec!).js : coverage
But he misses everything.
How to do it?
Link - https://github.com/karma-runner/karma/issues/508
source share