You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @mrtnmgs this is the same issue as #5781, we'd be resolving it with the same change either way. If you wouldn't mind, could you close whichever one of the two you is less general? It seems like this one is more general to me, so we might close #5781 in favor of this one, but up to you.
Just closed the other one. I would appreciate if this was considered a bug and not a feature request like the other ticket. The output of npm test is 14000 lines long of false negatives, I basically can't use the test suite. This issue also prevents Continuous Integration.
Hey @mrtnmgs I just put together a fix which prevents Stencil test files (.spec.ts) from being written to the output - if you have time you could give it a try to see if it fixes the issue for you!
Thanks @alicewriteswrongs. It works. The patch prevents both .spec.ts and .e2e.ts files to be copied over, and the test suite runs fine. It's still copying the mock files and throwing the warning for them though.
Awesome, glad that it works to prevent those from being written! I'm going to confer with the rest of the team today to come up with a good direction on what to do about those __mock__ files, I'll let you know what we come up with!
So after a bit of investigation I determined that the __mock__ issue is a separate issue from this issue where .spec. and .e2e. files are being written to the output. This issue is a regression introduced in Stencil v3.3.0 which is addressed by #5789.
The separate issue with copying the contents of __mocks__ is something which I can reproduce in all versions of Stencil I've tested -- it has to do with Stencil copying .js files in the src/ directory to the dist output.
Sorry about the back-and-forth on this! This issue (#5788) will be addressed by #5789 and I'm going to re-open #5781 to cover that separate issue.
Activity
alicewriteswrongs commentedon May 22, 2024
Hey @mrtnmgs this is the same issue as #5781, we'd be resolving it with the same change either way. If you wouldn't mind, could you close whichever one of the two you is less general? It seems like this one is more general to me, so we might close #5781 in favor of this one, but up to you.
mrtnmgs commentedon May 22, 2024
Just closed the other one. I would appreciate if this was considered a bug and not a feature request like the other ticket. The output of
npm testis 14000 lines long of false negatives, I basically can't use the test suite. This issue also prevents Continuous Integration.alicewriteswrongs commentedon May 22, 2024
Agree, this is a bug 👍
fix(emit): don't emit test files
alicewriteswrongs commentedon May 22, 2024
Hey @mrtnmgs I just put together a fix which prevents Stencil test files (
.spec.ts) from being written to the output - if you have time you could give it a try to see if it fixes the issue for you!mrtnmgs commentedon May 23, 2024
Thanks @alicewriteswrongs. It works. The patch prevents both
.spec.tsand.e2e.tsfiles to be copied over, and the test suite runs fine. It's still copying the mock files and throwing the warning for them though.alicewriteswrongs commentedon May 23, 2024
Awesome, glad that it works to prevent those from being written! I'm going to confer with the rest of the team today to come up with a good direction on what to do about those
__mock__files, I'll let you know what we come up with!fix(emit): don't emit test files
alicewriteswrongs commentedon Jun 3, 2024
So after a bit of investigation I determined that the
__mock__issue is a separate issue from this issue where.spec.and.e2e.files are being written to the output. This issue is a regression introduced in Stencil v3.3.0 which is addressed by #5789.The separate issue with copying the contents of
__mocks__is something which I can reproduce in all versions of Stencil I've tested -- it has to do with Stencil copying.jsfiles in thesrc/directory to thedistoutput.Sorry about the back-and-forth on this! This issue (#5788) will be addressed by #5789 and I'm going to re-open #5781 to cover that separate issue.
fix(emit): don't emit test files
mrtnmgs commentedon Jun 4, 2024
Thanks for the update @alicewriteswrongs !
fix(emit): don't emit test files (#5789)
tanner-reits commentedon Jun 26, 2024
A fix for this was included in today's v4.19.0 release!
chore(deps): update dependency @stencil/core to v4.19.0 (#29666)