Stencil version:
@stencil/[email protected]
I'm submitting a:
Current behavior:
If you clone the stencil-component-starter and run the tests, they hang. The tests work in stencil-app-starter. Comparing the two repos, the big difference is that the component starter uses shadow DOM whereas the app starter does not.
Expected behavior:
No hangy hangy in the testy testy.
Steps to reproduce:
stencil-component-starter reposhadow: true parameter from the one component in this repoRelated code:
import { Component, Prop } from '@stencil/core';
@Component({
tag: 'my-component',
styleUrl: 'my-component.scss',
shadow: true
})
export class MyComponent {
@Prop() first: string;
@Prop() last: string;
render() {
return (
<div>
Hello, World! I'm {this.first} {this.last}
</div>
);
}
}
Other information:
As info, I wanted to see if this was related to JSDom's (lack of) support for Shadow DOM, so I tried setting up Jest to run against Headless Chrome and Puppeteer, via this guide.
Repo here: https://github.com/mattdsteele/stencil-component-puppeteer
On a Mac, I'm seeing the same hanging failures for any tests that use render(), as described above. This happens regardless of whether I set shadow to true or false.
I'm getting the same issue. It seems like render() always returns null, no matter if I have only a <div></div> in the {html} prop and no components or if I have components.
@adamdbradley Are there any updates on that issue since 0.6.0?
No longer applicable with latest version
Most helpful comment
@adamdbradley Are there any updates on that issue since 0.6.0?