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

https://github.com/greenheart/tdd-js-boilerplate

A minimal boilerplate for TDD with JS.
https://github.com/greenheart/tdd-js-boilerplate

Last synced: about 2 months ago
JSON representation

A minimal boilerplate for TDD with JS.

Awesome Lists containing this project

README

        

# tdd-js-boilerplate
A minimal boilerplate for TDD with JS.

## Built with
- Assertion library: `tape`
- Test runner: `npm scripts` + `tape-watch`
- Output formatting: `tap-diff`

## Usage
- `npm test [files]` - Run specific test(s) once. **Default: `test/*`**
- `npm run tdd [files]` - Watch files using `tape-watch` and run specific test(s) continually. **Default: `test/*`**

`[files]` is a string pattern matching files to be tested. E.g. `test/*.test.js`

For an example, check `example.js` and `test/example.test.js`.

## License
[MIT](LICENSE)