mardi 14 janvier 2020

Angular tests: way to test files


Is there any way to test a group of files in angular? like using flags? In my case, I make a service test file (service.spec.ts) to do an integration test with my api. In this test the angular service send a real XHR requests. But I don't want to execute that files every time I test other components. Any suggestions?
My intent:
the usual:
ng test
when test sever:
ne test -flag-that-allow-just-to-test-real-services

Aucun commentaire:

Enregistrer un commentaire