👋 Welcome! #4485
Replies: 6 comments 11 replies
-
In https://github.com/ReadAlongs/Web-Component we are, in theory, using @nx/jest a.k.a. @nrwl/jest which, I believe, requires Jest 28 (it's really hard to keep track of all these versions of everything...) In practice of course this doesn't really work, so we just fall back on end-to-end testing with Cypress, which does work, consistently. |
Beta Was this translation helpful? Give feedback.
-
In our case, we rely on Nx to handle our monorepo and all our unit testing and e2e tests have been written with Jest and Puppeteer, following Stencil documentation. Unfortunately, we must stick to Nx 14 because Stencil supports only up to Jest 27. |
Beta Was this translation helpful? Give feedback.
-
We also use Stencil within an NX monorepo. For all unit tests we use jest. For e2e tests Cypress. Our main frontend framework for almost all applications is Angular. The UI components for our mobile apps are based on Ionic and Stencil. The UI library for our newer web apps are written entirely in Angular, as this involves less configuration work and incopatibilities for us. Since we are working with the current version of NX, we had to disable unit-tests for the stencil components in the pipeline and try to catch this as much as possible with Cypress tests. Of course, this is not a satisfactory permanent state. |
Beta Was this translation helpful? Give feedback.
-
I am waiting eagerly for jest > 27 support. I prefer to run stencil tests with plain I do not care for pupeteer, instead I prefer to run integration test style tests using jest and testing-library. An official For e2e tests I am using playwright. e2e tests should not care for the frameworks used underneath. |
Beta Was this translation helpful? Give feedback.
-
I'm working on a Stencil project and a component is using a custom decorator ( export class MyTable {
@Element() @ResponsiveCssClasses() hostEl: HTMLMyTableElement;
... When I run the tests, I get a failure:
Unsure if this is Jest causing this issue (if so, if it's an older version of Jest), or if it's just the component 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hey guys, |
Beta Was this translation helpful? Give feedback.
-
This category of discussions if for Stencil Testing, with a focus on packages/infrastructure.
As of Stencil v3.4, Stencil supports Jest 24 through 27 and Puppeteer 10 thru 20.
We're working on bringing support for Jest 28 + 29 to Stencil, but would like folks to chime in with their specific testing needs. Do you need to use a specific version of Jest? Looking to use a different library from Stencil's current stack? Please open a new discussion, we'd love to hear from you!
Beta Was this translation helpful? Give feedback.
All reactions