https://github.com/fakiolinho/javascript-unit-tests-playground
This is a playground so i can run some javascript unit tests fast
https://github.com/fakiolinho/javascript-unit-tests-playground
babel es6 javascript jest mocha tape testing unit-testing
Last synced: about 2 months ago
JSON representation
This is a playground so i can run some javascript unit tests fast
- Host: GitHub
- URL: https://github.com/fakiolinho/javascript-unit-tests-playground
- Owner: fakiolinho
- Created: 2017-03-19T22:38:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T14:08:44.000Z (about 8 years ago)
- Last Synced: 2025-02-04T21:19:34.370Z (4 months ago)
- Topics: babel, es6, javascript, jest, mocha, tape, testing, unit-testing
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Javascript Unit Tests Playground
This is a playground so i can run some javascript unit tests fast with [Jest](https://facebook.github.io/jest/), [Mocha](https://mochajs.org/) or [Tape](https://github.com/substack/tape).
## Getting Started
Run following commands to get started:
```bash
git clone https://github.com/fakiolinho/javascript-unit-tests-playground.git
cd javascript-unit-tests-playground && npm i
```## Jest Tests
Put the test file in `jest` folder and name it following `name.spec.js` pattern. Run your test:
```bash
npm run test:jest
```## Mocha Tests
Put the test file in `mocha` folder and name it following `name.spec.js` pattern. [Chai](http://chaijs.com/) is used for assertions. Run your test:
```bash
npm run test:mocha
```## Tape Tests
Put the test file in `tape` folder and name it following `name.spec.js` pattern. Run your test:
```bash
npm run test:tape
```## License
This project is licensed under the MIT License