Spec ntaub ntawv nyob rau hauv angular yog dab tsi?
Spec ntaub ntawv nyob rau hauv angular yog dab tsi?

Video: Spec ntaub ntawv nyob rau hauv angular yog dab tsi?

Video: Spec ntaub ntawv nyob rau hauv angular yog dab tsi?
Video: Siv Yis Neeb Leej Cawm Seej Music Video Short 2024, Hlis ntuj nqeg
Anonim

Cov spec cov ntaub ntawv yog cov ntawv xeem rau koj qhov chaw cov ntaub ntawv . Convention rau Angular daim ntawv thov yuav tsum muaj. spec . Lawv khiav siv Jasmine javascript test moj khaum los ntawm Karma test runner (https://karma-runner.github.io/) thaum koj siv ng test command.

Kuj paub, dab tsi yog. TS cov ntaub ntawv hauv angular?

ts : Qhov no ntaub ntawv yog ib qho kev sim ntsuas ntaub ntawv muaj feem xyuam rau cov khoom siv app. Qhov no ntaub ntawv yog siv nrog rau lwm yam kev xeem chav tsev. Nws yog khiav los ntawm Angular CLI los ntawm cov lus txib ng xeem. app. tiv thaiv.

Kuj Paub, ua ntej Txhua yam hauv angular yog dab tsi? piav qhia txog cov blocks txhais cov kev xeem suite thiab txhua qhov nws thaiv yog rau ib tus neeg sim. ua ntej txhua khiav ua ntej txhua kuaj thiab siv rau kev teeb tsa ntawm qhov kev xeem. tom qab txhua tus khiav tom qab txhua qhov kev xeem thiab siv rau qhov kev sib tw ntawm qhov kev xeem. Koj tseem tuaj yeem siv ua ntej Tag Nrho thiab tom qab tag nrho, thiab cov no khiav ib zaug ua ntej lossis tom qab tag nrho cov kev xeem.

Kuj paub, debugElement yog dab tsi?

debugElement yog Angular txoj kev.. nativeElement() yog Browser tshwj xeeb API uas rov qab los yog muab kev nkag mus rau DOM tsob ntoo. Yog hais tias peb paub tseeb tias peb daim ntawv thov yuav khiav ntawm browser nkaus xwb, ces unhesitantly peb yuav siv let el = fixture. nativeElement.

No_errors_schema yog dab tsi?

NO_ERRORS_SCHEMA txuas Txhais lub schema uas tso cai rau txhua yam khoom ntawm txhua lub caij.

Pom zoo: