stencil
stencil copied to clipboard
Component name ending with "test" (e.g. "latest") will throw test error
Stencil version:
"@stencil/core": "^1.12.2"
I'm submitting a:
[x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior: tests fail
Expected behavior: tests pass
Steps to reproduce: generate a new stencil component via npm init stencil rename component to e.g. "latest.tsx" run stencil test "test": "stencil test --spec --e2e"
jest args: --e2e --spec --max-workers=8 FAIL src/components/latest/latest.tsx ● Test suite failed to run
Your test suite must contain at least one test.
any news here ?
@fyyyyy @DrMabuse23 Sorry for this issue sitting unanswered for so long!
If either of you are still experiencing this issue with a recent version of Stencil, could you please update to issue to include a minimum reproduction repo? That would help our team dramatically as we start sifting through our un-triaged issues. Otherwise, we'll look to close this out in the near future. Thanks in advance!
Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.
Please reproduce this issue in an Stencil starter component library and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.
For a guide on how to create a good reproduction, see our Contributing Guide.
I'm experiencing this something similar Stencil version
"@stencil/core": "2.17.4",
Current behavior: tests fail
Expected behavior: tests pass
Steps to reproduce:
In the terminal run
stencil test --spec --e2e
The terminal will output
jest args: --e2e --spec --max-workers=8
Then get to this error:
Your test suite must contain at least one test.
src/components/toc-item/toc-item.e2e.tsx
● Test suite failed to run
Your test suite must contain at least one test.
at onResult (node_modules/@jest/core/build/TestScheduler.js:175:18)
Further observations:
If I run stencil test --e2e, all my end-to-end tests pass.
But when I run stencil test --spec --e2e, that error will happen
@musangowope can you do us a favor and create a minimal reproduction case & a new issue for the team to take a look at? Thanks!
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.
Thank you for using Stencil!