Closed mahmoudajawad closed 3 years ago
anxiously waiting for the tests to work again
@juniorschen, can you check NativeScript 7 with Angular 10? I've been trying to get a time slot to testing NS7 but don't have the time. NS7 is bringing ES2017 support which is @NathanWalker explained in another issue is the reason testing NS7+NG9/10 is not working.
@mahmoudajawad still not working, I love being able to test, give me confidence in what I'm releasing for production. It's a little sad to have out-of-release versions that don't support testing yet ... :/
@juniorschen, I really wish I can dedicate time to help NS team with Angular testing, but can't currently, but remains a goal for me to becoming a core contributor. I beleive NS team is already doing amazing work, and for that they deserve a hand.
On the testing topic, are you getting the same errors I listed or different ones? If same, we will know the original issue beginning NG9 is still not solved even with ES2017 targeting. If different, we might want to consider the options again.
@mahmoudajawad the same errors (https://github.com/NativeScript/nativescript-angular/issues/2201) in ns7/angular 10
This, @juniorschen, tells us that there's something else to do to get testing to work again. Frankly speaking, even with NS+NG8 I had a lot of cases which broke the testing and needed to make modifications, for that, I'm hopeful that this is something that we can resolve at app level, and not at NS[7] core level.
@mahmoudajawad I believe that the solution does not go this way, our app would have to carry out configurations without purpose, not to mention that the possibility of problems that we cannot control is huge, I'll give you an example: To overcome the jasmine type problem I imported them in each test file (import 'jasmine';), I had overcome this problem, but with the new version this simple solution no longer works
Unit test runner is back 👍 https://twitter.com/NativeScript/status/1315016431558291456
and down again with NG 11
Environment
Describe the bug After creating the project and setting up testing per the guide on: https://docs.nativescript.org/angular/tooling/testing/testing (which works with NS6+NG8, only. Doesn't work with NS6+NG9) and running it the following is logged in the console:
After comparing
tsconfig.tns.json
from NS+NG10, and current working version of NS+NG8, I found the following lines are missing from the earlier:By adding the lines again to the file, the previous error message is gone, but a brand-new is coming:
To Reproduce
Even, with most basic unit testing example, the error is there:
As I wanted to have more verbose test, I went ahead and setup testbed, but the same error showed up. Here is how I modified the guide from the guide to correct the imports:
Expected behavior Unit tests are supposed to be detected and run and return test results as it used to do with NS+NG8.
Sample project This is happening for new projects, as well as upgraded projects. No sample is required. If the issue is not reproducible I 'll provide a project showing the issue.
Additional context This is continuation to: https://github.com/NativeScript/nativescript-angular/issues/2201