@jarmee/schematics v2.0.4
@jarmee/schematics
This package provides several schematics to make the life of an Angular developer easier. If applied it will provide you the following benefits:
- adds Jest support to your Angular workspace
Usage
To apply this package to an already existing Angular workspace you only have to execute ng add @jarmee/schematics and you're good to go. During the installation process of the schematics it will carry out the steps stated below:
- The schematics will add
test:jestandtest:jest:watchscripts to yourpackage.jsonto runjest. Followed by the addition ofjest,jest-preset-angularand@types/jestto thedevDependeciesof yourpackage.json. To complete this step anpm installis executed. - It will update the
tsconfig.spec.jsonin your root directory and addsjestto thetypesarray of yourcompilerOptions. Also the porpertyesModuleInteropwill be added and set totrue. - To prevent inconveniences the schematic will remove the
src/test.tsfile from your workspace. - Finally it will add the files
jest.config.js,jestGlobalMocks.tsandsetup-jest.tsto the root of your Angular workspace.
After the configuration process has been finished you can run npm run test:jest or yarn test:jest to test your Angular workspace with jest.
License
This project is licensed under the MIT License
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago