Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roblafeve/test-starter
A simple starter project to get you up and testing JavaScript
https://github.com/roblafeve/test-starter
Last synced: 14 days ago
JSON representation
A simple starter project to get you up and testing JavaScript
- Host: GitHub
- URL: https://github.com/roblafeve/test-starter
- Owner: roblafeve
- Created: 2016-01-16T23:55:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-18T18:54:36.000Z (almost 9 years ago)
- Last Synced: 2023-03-10T21:41:52.733Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test Starter
A simple starter project to get you up and testing JavaScript
## Tools Used
- [Mocha](https://mochajs.org) - test runner
- [Chai](http://chaijs.com) - assertion library
- [Isparta](https://github.com/douglasduteil/isparta) - ES6 test coverage analysis via [istanbul](https://github.com/gotwarlost/istanbul)
- [Babel](https://babeljs.io) - write ES6 code—because why not?## Setup
1. `npm install` - get all the stuff
2. `npm run test` - starts watching your code and displays results in the console _(restart this if you add new files)_
3. `npm run cover` - runs your test suite and displays test coverage report in the console. It starts out at 100% _(not a practical percentage in a real project)_, so anything below that is your fault ;)## Notes
- Tests live in `tests`
- Notice that native module import/export is being used.
- Normally you would need to reference module imports with a relative or absolute path. For convenience, `./src` has been set as the `NODE_PATH`, imports will attempt to resolve there first.