Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.

Jest collectCoverageFrom ignore paths not working #5

Closed
IncredibleMrTim opened this issue Aug 28, 2019 · 2 comments
Closed

Jest collectCoverageFrom ignore paths not working #5

IncredibleMrTim opened this issue Aug 28, 2019 · 2 comments

Comments

@IncredibleMrTim
Copy link

Hey

I use code coverage, however i have found when applying ignore paths to my jest configuration, they are no longer respected.

package.json

...
	"jest": {
		"collectCoverageFrom": [
			"src/**/**/**/*.js",
			"src/**/**/**/*.jsx",
			"!src/index.js",
			"!src/setupTests.js",
			"!src/**/stories/*.js"
		]
	},
...

please can you take a look at this?

@risen228
Copy link
Owner

Hi @IncredibleMrTim. I recently decided to move from the concept of cra-alias to a plugin for craco and created craco-alias.

Using this package makes it possible to use the craco API and modify many other configs hidden by CRA (adding aliases remained as easy as it was in cra-alias, and new features were added).

I also think that the bug presented in this issue should not be repeated when using craco. For a simple transition between packages, I added migrating from cra-alias section to craco-alias README.

I hope you will enjoy the new solution, thanks.

@risen228 risen228 pinned this issue Aug 30, 2019
@IncredibleMrTim
Copy link
Author

hey @risenforces i seem to be having issues installing @craco/craco , we use Nexus 2 which seems to hav a bit of an issue with craco.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants