I am currently getting my test files in the final coverage. Probably because they are sitting next to my components, and do not have their own test folder. How can I exclude them from coverage?
I installed istanbul and nyc and i use mocha .
My script looks like this:
"test": "nyc --reporter=html mocha tools/testSetup.js app/**/*.spec.js || true"
That's right, after some digging, I managed to achieve this. I added
"nyc": { "include": "app", - only looks in the app folder "exclude": "**/*.spec.js" }
.json. webpack, , , webpack.config ( ). , .
Source: https://habr.com/ru/post/1669164/More articles:How can I make Gitlab merge code with branch transition with successful build - gitWhy can python iterate over utf-8 strings but not emoticons? - pythonHow to make rvalue link be a "restricted" alias? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1669162/bind-class-to-a-slot-in-vuejs-2&usg=ALkJrhgaU0xxD8W9XFN_GbhQv7NofOg5bQСтрока parse для поиска первого дубликата символьно-функционального и продекурального стиля кодирования - rebolКак использовать зашифрованные переменные среды в AWS Lambda? - node.jsHow to consume soap in real life? - reactjshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1669167/how-to-know-when-the-output-buffer-is-too-small-when-decompressing-with-lz4&usg=ALkJrhiEl1xk0-xpb_d_zeeF7lnJeTxLegWhat are the preliminary highlighted jvm exceptions? - javaThe best way to solve sparse linear systems in C ++ - GPU Perhaps? - c ++All Articles