Open makeupsomething opened 4 years ago
@makeupsomething Thanks for reporting this. That's a bug in the compiler itself. We saw a similar bug in the typescript compiler. You can read more here - https://github.com/teambit/envs/issues/10 I guess it's the same issue. I'll move this to the envs repo to be handled there.
Hi @makeupsomething can you provide a link to an example component? I would like to debug this issue. @GiladShoham is right that it sounds like an issue with the compiler letting bit know which compiled filed are the test files.
Iv got the same problem using the stencil compiler.
@Mouvedia Please open a new issue for the stencil compiler
I also see this problem in an Angular component:
╔═══════════════════╤════════════════════════════════════════════════════╗
║ Id │ change-case-pipe@0.0.2 ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Compiler │ bit.envs/compilers/angular@9.0.21 ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Tester │ bit.envs/testers/jest@22.4.3 ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Language │ javascript ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Main File │ src/lib/change-case-pipe/change-case-pipe.module.t ║
║ │ s ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Dependencies │ ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Dev Dependencies │ tslib@>=1.0.0 ║
║ │ webpack-env@>=0.8.0 ║
║ │ @angular/core@>= 8.0.0 ║
║ │ @angular/common@>= 8.0.0 ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Peer Dependencies │ @angular/core@^8.0.0 ║
║ │ change-case@^4.1.1 ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Files │ src/lib/change-case-pipe/change-case-pipe.module.t ║
║ │ s ║
║ │ src/lib/change-case-pipe/change-case.pipe.ts ║
║ │ src/lib/change-case-pipe/index.ts ║
║ │ src/lib/change-case-pipe/package.json ║
╟───────────────────┼────────────────────────────────────────────────────╢
║ Specs │ src/lib/change-case-pipe/change-case.pipe.spec.ts ║
╚═══════════════════╧════════════════════════════════════════════════════╝
Description
I had a bit component already exported, and later added a test to it. I seem to be able to add the tester and test file but when I run the tests I get a warning
You can see the component details here
Specifications
Context and additional information