briebug / jest-schematic

Angular schematic for adding Jest and the required files to an Angular CLI project
MIT License
322 stars 38 forks source link

Libraries generated by cli using `ng generate library` creates a subproject using Karma intead of Jest #1

Open frenetic opened 6 years ago

frenetic commented 6 years ago

Reopen from https://github.com/briebug/jest/issues/9. At first it was a bug report... now I think it is a feature request

Is your feature request related to a problem? Please describe. After using this schematics to convert my project into a Jest one, I expected all libs I created to also be Jest projects.

Describe the solution you'd like After running all the steps to convert my project to Jest, when creating a new lib, I expect to, at least, not have a Karma configuration file on this lib. Also, if possible, have the correct jestSetup files.

Describe alternatives you've considered If it cannot be done automatically, create a script to, at least, remove the karma file.

schuchard commented 6 years ago

Thanks for moving this issue over. So you're talking about and Angular CLI library not an Nx library correct?

frenetic commented 6 years ago

Yes. NG CLI only.

anthonymjones commented 5 years ago

I'll look into this.

ezebc182 commented 4 years ago

Is this resolved?

schuchard commented 4 years ago

This feature has not been built. Generating code with the CLI will still use the defaults. However, this schematic is in a better position to offer this functionality in the future.

Lonli-Lokli commented 3 years ago

Is there any options except for the Nx?