Uh oh!
There was an error while loading. Please reload this page.
Test framework specific warnings - #193
Conversation
SkyaTura
commented
Apr 4, 2021
I created this from the add-framework-option branch, I didn't noticed that you've merged that branch until I pushed this. |
Shinigami92
commented
Apr 4, 2021
Yeah it was in this moment ^^ I think you can use |
Shinigami92
commented
Apr 4, 2021
@SkyaTura Or maybe if this doesn't work well, you need |
SkyaTura
commented
Apr 4, 2021
Merge main into the branch works just fine to "fix" it. Although it keeps a lot a commits 😂 |
Shinigami92
commented
Apr 4, 2021
Yeah with the But for testing the logs we should consider using mocks or spys (https://stackoverflow.com/questions/49096093/how-do-i-test-a-jest-console-log) instead of adding runtime code to the project 🤔 |
258d62b to
56544e3CompareShinigami92
commented
Apr 7, 2021
So I now used |
Shinigami92
commented
Apr 8, 2021
@SkyaTura I'm looking forward to release a v1.14.0 bundling this feature, the new docs and hopefully also now issue-167 if |
SkyaTura
commented
Apr 8, 2021
I can work on it in this weekend, for sure. |
SkyaTura
commented
Apr 9, 2021
Hey @Shinigami92 . 👋🏻 I successfully managed to use Also, I need someone that actually works with Angular to tell me test cases that throws those warnings, because I wasn't able to reproduce it. |
Shinigami92
commented
Apr 9, 2021
Don't fear the linting warnings and errors 😄 You may look into some older issues like these: https://github.com/prettier/plugin-pug/issues?q=is%3Aissue+label%3A%22framework%3A+Angular%22 |
SkyaTura
commented
Apr 10, 2021
I managed to add one test case, unfortunately I didn't found examples to the other warnings 😞 |
Shinigami92
commented
Apr 10, 2021
Hey, think positive 😃 I think most of the messages where catched due to reports from using But I could be false remembering here I think I will also look into some messages again the next few days and find out how to throw them forcefully in tests |
Shinigami92
commented
Apr 11, 2021
WOW! @SkyaTura I found out that most tests are falling falsely into the default case 😕 But I will do that later, give me some days |
Hey @Shinigami92 , I found a (kind of) easy way to test framework warnings. Could you please have a look on this?
By the way, I'm not a TypeScripter myself, so there is some lint errors that I don't know how to fix.
Also, I don't know how to trigger Angular's specific warnings 😂