DEV Community

Discussion on: Migrate from Jasmine to Jest and Testing Library in Angular

Collapse
 
ronaldohoch profile image
Ronaldo Hoch

Hello and thank you! I have seen many developers going to Jest...
Let me ask you, the package @testing-library/angular replaces the test file created by ng generate component comand or i need to create the component skiping test and after run the jest schematic?

Collapse
 
danywalls profile image
Dany Paredes

Hi, the package @testing-library/angular extends DOM Testing library adding APIs for working with Angular components easy, like simplify detect changes etc.

You don't need to delete the test generate by angular-cli, by default is compatible with Jest. You will start to use the jest functions instead of jasmine.

Collapse
 
ronaldohoch profile image
Ronaldo Hoch

hmm, i understood! Thank you.