Open meisterveda opened 2 years ago
Same problem on my site after upgrading to Angular 14.
Same problem on my site after upgrading to Angular 14.
I found that at least with the latest Angular if you re-run the components generator it will update and add the spec file. Make sure in the configuration you have it so it will create the file.
@meisterveda What do you mean by "Make sure in the configuration you have it" ?
I believe is in the angular.json, you will see a part, under schematics that will say something along the lines of skipTest: true, change that to false or just remove the lines.
@meisterveda: Can we get an example please?
https://upmostly.com/angular/skipping-tests-in-angular-cli
This article shows how to skip them, if you have that line as false it will create them
Then Running
ng g ngx-spec:specs 'components/alerts/*
To generate a spec file on a component I received that warning. I also recieved an error calling "Cannot find module '/removed_local_directory/node_modules/@schematics/angular/component/index.js.js'My package.json