https://github.com/power-assert-js/intelli-espower-loader
Handy node module for power-assert and espower-loader.
https://github.com/power-assert-js/intelli-espower-loader
Last synced: about 1 year ago
JSON representation
Handy node module for power-assert and espower-loader.
- Host: GitHub
- URL: https://github.com/power-assert-js/intelli-espower-loader
- Owner: power-assert-js
- License: mit
- Created: 2014-03-12T13:32:47.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T02:02:19.000Z (almost 3 years ago)
- Last Synced: 2025-05-08T21:17:05.437Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 56
- Watchers: 8
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# intelli-espower-loader [![Build Status][ci-image]][ci-url]
Handy node module for [power-assert](https://github.com/power-assert-js/power-assert "power-assert") and [espower-loader](https://github.com/power-assert-js/espower-loader " espower-loader").
## Installation
``` sh
npm install intelli-espower-loader --save-dev
```
You should also install [power-assert](https://github.com/power-assert-js/power-assert "power-assert").
```sh
npm install power-assert --save-dev
```
## Usage
See [example/](example/)
### 1. Put test script in test folder
The default folder is `"test/"`. You must put your test script in this folder.
**If you don't put your test code in the right folder, intelli-espower-loader will work incorrectly.**
You can change test folder setting in your `package.json`
``` json
{
"name": "your-module",
"description": "Your module",
"version": "0.0.1",
"directories": {
"test": "test/"
},
"license": "MIT",
...
}
```
``` json
"directories": {
"test": "test/"
}
```
### 2. Run mocha with `intelli-espower-loader`
``` sh
mocha --require intelli-espower-loader
```
Run Test with [power-assert](https://github.com/power-assert-js/power-assert "power-assert") on the fly!!


## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## License
MIT
[ci-image]: https://github.com/power-assert-js/intelli-espower-loader/workflows/Node.js%20CI/badge.svg
[ci-url]: https://github.com/power-assert-js/intelli-espower-loader/actions?query=workflow%3A%22Node.js+CI%22