Тэги:
#angular_jest #angular_jest_vs_karma #angular_jest_vs_jasmine #angular_jest_testing_tutorial #angular_jest_testing #angular_jest_setup #angular_jest_tutorial #jest_angular_tutorial #jest_angular_test #jest_angular_unit_test #jest_angular #angular_testing #angular_jest_unit_testing #Angular_jest_unit_test_example #Angular_10Комментарии:
Thanks for sharing. I was struggling with the "Unexpected token" error when doing this migration in my project. If I may add, a deprecation warning appears in the console with the configuration shown in the video. To get rid of it, just use the import 'jest-preset-angular/setup-jest' instead of 'jest-preset-angular' in the setupJest.ts file
Ответитьanna poli thenks
ОтветитьThis was really helpful. Thank you.
ОтветитьThank you for that video. After I've migrated to jest I got this error in every test that does TestBed.configureTestingModule(). compileComponents().
zone-testing.js is needed for the fakeAsync() test helper but could not be found.
Please make sure that your environment includes zone.js/dist/zone-testing.js.
Do you have any ideas how can I fix it?
Awesome..this is working
ОтветитьThanks , nice content :-)
ОтветитьLoving these frequent uploads!
Ответить