-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: __mocks__ copied to output target #5781
bug: __mocks__ copied to output target #5781
Comments
Hey @mrtnmgs thanks for reporting this, I was just able to confirm that the files in the I'm going to label this a feature request so we can gauge community interest in such a feature! |
Thanks @alicewriteswrongs. That feature sounds nice, but right now things don't work properly by default. There's no reason to copy |
Closing as this is part of a larger issue, see #5788 |
A fix for this bug has been published in Stencil |
Prerequisites
Stencil Version
4.18.0
Current Behavior
Stencil copies over mocks directories to
dist
and throws warnings about duplicate mocks.The mocks are
./src/global/services/__mocks__
and./src/global/__mocks__
Stencil's console warning:
I wondered if I wasn't supposed to write the mocks in TypeScript, but same thing with .js files:
I couldn't find a config option that would allow to explicitly exclude these directories.
Expected Behavior
__mocks__
directories should be excluded when copying files to build directoriesSystem Info
Steps to Reproduce
create file
src/global/functions.tsx
and matching mocksrc/global/__mocks__/functions.tsx
. runnpm test
.Code Reproduction URL
/~https://github.com/mrtnmgs/mockbug
Additional Information
No response
The text was updated successfully, but these errors were encountered: