https://github.com/yasu-s/ng-jest-sample
Angular + jest
https://github.com/yasu-s/ng-jest-sample
angular github-actions jest jest-preset-angular typescript
Last synced: 2 months ago
JSON representation
Angular + jest
- Host: GitHub
- URL: https://github.com/yasu-s/ng-jest-sample
- Owner: yasu-s
- License: mit
- Created: 2019-01-05T12:49:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T04:39:47.000Z (about 3 years ago)
- Last Synced: 2025-02-09T17:13:06.192Z (over 1 year ago)
- Topics: angular, github-actions, jest, jest-preset-angular, typescript
- Language: TypeScript
- Homepage: https://kakkoyakakko2.hatenablog.com/entry/2019/02/01/003000
- Size: 1.13 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
It is a sample project of Angular + Jest.
# System requirements
* Node.js - 10.x
* Yarn - 1.12.x
# Used library
* TypeScript - 3.5.x
* Angular - 8.2.x
* Jest - 24.9.x
* ts-jest - 24.0.x
* jest-preset-angular - 7.1.x
* @angular-builders/jest - 8.2.x
# Operation check
## 1. Download Sample
```
git clone git@github.com:yasu-s/ng-jest-sample.git
```
## 2. Installing packages
```
cd ng-jest-sample
yarn
```
## 3. Launch sample application
```
yarn test
```
# NPM Script list
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.