Stencil: Running tests throws error
See original GitHub issueDescribe the bug Running tests throws the following error:
> nx run my-lib:test
[25:42.9] testing spec files
[25:42.9] jest args: --projectType=library --tsConfig=libs/my-lib/tsconfig.lib.json
--configPath=libs/my-lib/stencil.config.ts --outputPath=dist/libs/my-lib --spec --max-workers=8
[ ERROR ] runJest: TypeError: Class extends value #<Object> is not a constructor or null
To Reproduce
- Create new library
nx g @nxext/stencil:lib my-lib
- Run tests
nx test my-lib
Expected behavior Run tests without error.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Using jest-dom in StencilJS tests throws error - Stack Overflow
So my question is - is there a way to get jest-dom to work with StencilJS unit tests, as it appears that the...
Read more >stencil/core does not throw error when missing jest/jest-cli ...
in Stencil v2.10.0, running stencil test --spec -e2e causes Stencil's testing 'task' to start up Jest. As a part of the process, Stencil...
Read more >Unit Testing - Stencil.js
Stencil makes it easy to unit test components and app utility functions using Jest. Unit tests validate the code in isolation. Well written...
Read more >Stencil Bundle throws error - BigCommerce Support
Stencil Bundle throws error. Hello,. I have tried running the theme locally and it works well. I have tested to create a custom...
Read more >A Guide On Debugging Tests in Stencil - DEV Community
When writing tests for a Stencil application, I found debugging tests a challenge, ... Or you're getting an error when running the tests....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll close this @SebastianSchenk. I added your fix for the jest-config package to the init generator until it’s fixed in stencil side.
Hopefully, that’s all obsolete after Stencil supports Jest 27 natively