Ignore Unit test files using jest and webpack

Asked

Viewed 82 times

0

Speak, guys, I’m having a hard time ignoring my test files when I went to build my application. How I set up the Web Pack to ignore test files?

1 answer

0

In your build script in the package.json file enter the --ignore option, for example:

babel / --out-dir dist --ignore *.spec.js --copy-files

Browser other questions tagged

You are not signed in. Login or sign up in order to post.