jest-schematic icon indicating copy to clipboard operation
jest-schematic copied to clipboard

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

Open frenetic opened this issue 7 years ago • 6 comments

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.

frenetic avatar Sep 17 '18 01:09 frenetic

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

schuchard avatar Sep 19 '18 15:09 schuchard

Yes. NG CLI only.

frenetic avatar Sep 20 '18 13:09 frenetic

I'll look into this.

anthonymjones avatar Jan 31 '19 17:01 anthonymjones

Is this resolved?

ezebc182 avatar Sep 30 '20 14:09 ezebc182

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.

schuchard avatar Sep 30 '20 15:09 schuchard

Is there any options except for the Nx?

Lonli-Lokli avatar Oct 07 '21 22:10 Lonli-Lokli