An open API service indexing awesome lists of open source software.

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

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