1. intelli-espower-loader
Make espower-lodaer config file unnecessary.
intelli-espower-loader
Package: intelli-espower-loader
Created by: power-assert-js
Last modified: Sun, 19 Jun 2022 01:41:58 GMT
Version: 1.1.0
License: MIT
Downloads: 82,468
Repository: https://github.com/power-assert-js/intelli-espower-loader

Install

npm install intelli-espower-loader
yarn add intelli-espower-loader

intelli-espower-loader Build Status

Handy node module for power-assert and espower-loader.

Installation

 npm install intelli-espower-loader --save-dev

You should also install power-assert.

 npm install power-assert --save-dev 

Usage

See 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

 {
    "name": "your-module",
    "description": "Your module",
    "version": "0.0.1",
    "directories": {
        "test": "test/"
    },
    "license": "MIT",
...
}
 "directories": {
    "test": "test/"
}

2. Run mocha with intelli-espower-loader

 mocha --require intelli-espower-loader

Run Test with power-assert on the fly!!

mocha

mocha with webstorm

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

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin