lundi 2 juillet 2018

Is there a way to customise default imports in generated spec files in angular?

Ive just started writing component tests for a project that uses angular/material. Pretty much every component uses material components so if I want to write a spec file then its almost certain that I will want to add CUSTOM_ELEMENTS_SCHEMA to the testbed schemas (which will stop the tests from failing on material components).

Is there a way to customise the way the angular CLI generates files so this is always done?

Aucun commentaire:

Enregistrer un commentaire