@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:jest
andtest:jest:watch
scripts to yourpackage.json
to runjest
. Followed by the addition ofjest
,jest-preset-angular
and@types/jest
to thedevDependecies
of yourpackage.json
. To complete this step anpm install
is executed. - It will update the
tsconfig.spec.json
in your root directory and addsjest
to thetypes
array of yourcompilerOptions
. Also the porpertyesModuleInterop
will be added and set totrue
. - To prevent inconveniences the schematic will remove the
src/test.ts
file from your workspace. - Finally it will add the files
jest.config.js
,jestGlobalMocks.ts
andsetup-jest.ts
to 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
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago