Angular + jest
It is a sample project of Angular + Jest.
git clone git@github.com:yasu-s/ng-jest-sample.git
cd ng-jest-sample
yarn
yarn test
script | overview |
---|---|
start | ng serve |
lint | Execute the tslint. |
test | Execute the unit test.(Jest) |
test:w | Execute the unit test. Run watch mode.(Jest) |
test:report | Execute the unit test.(Jest) The HTML report of the unit test is output to ./dist/reports/testResults/jest-html-reporter.html. Output the JUnit format test result file to ./dist/reports/testResults/junit.xml For code coverage also output to the ./dist/reports/coverage directory. |