reshape-tape
v1.1.2
Published
Quickly test Reshape plugins
Downloads
11
Maintainers
Readme
Reshape Tape
Reshape Tape lets you quickly test Reshape plugins.
Install this dependency to your project:
npm install --save-dev reshape-tape
Add the
reshape-tape
task to yourpackage.json
:{ "scripts": { "tape": "reshape-tape" } }
Add tests to your
.tape.js
file:module.exports = { 'reshape-my-plugin': { 'basic': { message: 'supports basic usage' } } };
That’s it! Now you can use the tape
task:
npm run tape
Options
Options may be passed through package.json
using reshapeConfig
:
{
"reshapeConfig": {
"plugin": "path/to/plugin.js",
"config": "path/to/.tape.js",
"fixtures": "path/to/htmldir"
}
}
Options may be passed through arguments:
reshape-tape --plugin=path/to/plugin.js --config=path/to/.tape.js