Ignoring __test__ folder during the build process
Hey guys I am trying to ignore my test files during the build process but unable to progress,
can someone please help me out, here's my tsconfig file
2 Replies
try to ignore folder?
How do your test files look like?
I am assuming that they are co-located so something like
src/components/MyComponent/MyComponent.tsx and src/components/MyComponent.test.tsx @juliecezar answer assumes that tests file live somewhere like __test__/components/MyComponent/MyComponent.test.tsx if they are co-located and you don't have other tsx files you can remove the "**/*.tsx" and from the include as that will include the *.test.tsx files but explicitly excluding them should work as long as there are not any other tsx files in your source tree that you do not want