Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.18.0
Current Behavior
In a new stencil project, test files are copied over to dist
. In some cases, Jest attempts to run these files, creating errors
Expected Behavior
Test files should be excluded of the distribution files (or, if there is a reason to copy them there, be ignored by jest)
System Info
Tested on both Windows and MacOS, npm 10.7.0
Steps to Reproduce
npm test
find dist -type f -name '*.spec.*'
find dist -type f -name '*.e2e.*'
Code Reproduction URL
https://github.com/mrtnmgs/mockbug
Additional Information
This is similar to the bug I logged a couple days ago #5781. I had not realized the problem was much larger than just the mocks.