Comments (9)
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.
from stencil.
Agree, this is a bug 👍
from stencil.
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!
from stencil.
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.
from stencil.
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.
from stencil.
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!
npm install @stencil/[email protected]
from stencil.
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.
from stencil.
Thanks for the update @alicewriteswrongs !
from stencil.
Related Issues (20)
- bug: puppeteer: piercing on level 1 breaks HOT 8
- bug: `autofocus` prop/attr is defined on other HTML attribute types instead of `HTMLAttributes` HOT 2
- bug: HOT 6
- bug: missing root element's scope id as classname in user provided children HOT 2
- Attribute ping is missing on AnchorHTMLAttributes HOT 3
- bug: Cannot read properties of undefined (reading 'isProxied') HOT 2
- bug: Stencil v4.18.1 breaks support for Jest v26 HOT 10
- bug: intermediate parents' scope ids are not reflected to the children elements HOT 3
- bug: Removing polyfills except for es5 builds breaks existing installs HOT 17
- bug: __mocks__ copied to output target HOT 3
- bug: Cannot access uninitialized variable, only in Safari, works with dev build HOT 3
- bug: Last version 4.18.2 breaks unit test in the proyect. HOT 9
- bug: When i try to integrate with react application, the slot element contains hidden attribute instead of displaying the content. Note: This stencil component is using scoped element. HOT 8
- feat: Style modes load styles only when needed HOT 1
- Stencil becomes a dependency to project when installing with --legacy-peer-deps HOT 9
- bug: unable to compile using angular's standalone mode (2) HOT 1
- bug: exception in an async componentWillLoad method will break the rendering cycle HOT 3
- feat: Next.js Support HOT 1
- bug: Watching Native HTML Attributes requires at least one @Prop() declaration HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stencil.