Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 961 Bytes

File metadata and controls

40 lines (25 loc) · 961 Bytes

Javascript Unit Tests Playground

This is a playground so i can run some javascript unit tests fast with Jest, Mocha or Tape.

Getting Started

Run following commands to get started:

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:

npm run test:jest

Mocha Tests

Put the test file in mocha folder and name it following name.spec.js pattern. Chai is used for assertions. Run your test:

npm run test:mocha

Tape Tests

Put the test file in tape folder and name it following name.spec.js pattern. Run your test:

npm run test:tape

License

This project is licensed under the MIT License