stencil icon indicating copy to clipboard operation
stencil copied to clipboard

Component name ending with "test" (e.g. "latest") will throw test error

Open fyyyyy opened this issue 5 years ago • 5 comments
trafficstars

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.

fyyyyy avatar Jun 08 '20 10:06 fyyyyy

any news here ?

DrMabuse23 avatar Jun 30 '20 06:06 DrMabuse23

@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!

tanner-reits avatar Sep 02 '22 17:09 tanner-reits

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.

ionitron-bot[bot] avatar Sep 02 '22 17:09 ionitron-bot[bot]

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 avatar Sep 08 '22 11:09 musangowope

@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!

rwaskiewicz avatar Sep 14 '22 12:09 rwaskiewicz

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!

ionitron-bot[bot] avatar Oct 14 '22 13:10 ionitron-bot[bot]