Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crissdev/jest-training
A project configured with Jest and Typescript to write unit tests
https://github.com/crissdev/jest-training
Last synced: about 2 months ago
JSON representation
A project configured with Jest and Typescript to write unit tests
- Host: GitHub
- URL: https://github.com/crissdev/jest-training
- Owner: crissdev
- License: mit
- Created: 2019-08-31T14:22:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T08:36:45.000Z (almost 2 years ago)
- Last Synced: 2023-04-10T00:00:27.545Z (over 1 year ago)
- Language: JavaScript
- Size: 577 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jest-training
[![Build Status](https://travis-ci.org/crissdev/jest-training.svg?branch=master)](https://travis-ci.org/crissdev/jest-training)
Learn Jest and unit testing through code challenges - each test represents a challenge. The challenges are taken from various sources (see Bibliography).
Just clone this repository and write your tests using Typescript.
```sh
$ git clone https://github.com/crissdev/jest-training
```The project is by default configured to:
- format files with Prettier (through vscode workspace configuration)
- check files with eslint (through vscode workspace configuration)
- automatically save and format files on editor focus change (through vscode workspace configuration)
- run tests with Jest## Development
Put your test suites in `__tests__` directory, tested features in `src` directory and run `npm test`. If you want Jest to continuousely run the tests then run `npm run watch` command. Note that tests must be written in Typescript.
## Continuous Integration
Continuous Integration configuration has been provided for Travis (.travis.yml), AppVeyor (appveyor.yml) and Bitbucket (bitbucket-pipelines.yml). Please refer to their documentation site for how to configure them.
## Bibliography
Add sources as necessary.
## License
MIT © [Cristian Trifan](https://crissdev.com)