Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ph1p/test-boilerplates

Some test examples
https://github.com/ph1p/test-boilerplates

ava jasmine jest mocha tests

Last synced: 9 days ago
JSON representation

Some test examples

Awesome Lists containing this project

README

        

# Test boilerplates [![Build Status](https://travis-ci.org/ph1p/test-boilerplates.svg?branch=master)](https://travis-ci.org/ph1p/test-boilerplates)

This repository contains examples of some of the most popular JavaScript test frameworks.
I am constantly working on new examples and improvements.

## ava ([source](https://github.com/avajs/ava))

```
cd ava-example
npm install
npm test
npm run test:coverage
npm run test:check-coverage
npm run test:watch
```

## jasmine ([source](https://github.com/jasmine/jasmine) & [jasmine-node](https://github.com/mhevery/jasmine-node))

```
cd jasmine-example
npm install
npm test
npm run test:coverage
npm run test:check-coverage
```

## jest ([source](https://github.com/facebook/jest))

```
cd jest-example
npm install
npm test
npm run test:coverage
npm run test:watch
npm run updateSnapshots
```
## mocha ([source](https://github.com/mochajs/mocha))

```
cd mocha-example
npm install
npm test
npm run test:coverage
npm run test:check-coverage
npm run test:watch
```

## TAP Reporters
https://github.com/sindresorhus/awesome-tap#reporters