Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

@putout/plugin-remove-skip

3.0.0 • Public • Published

putout-plugin-remove-skip NPM version Dependency Status

putout plugin adds ability to find and remove test.skip calls.

Install

npm i @putout/plugin-remove-skip -D

Rule

Rule remove-skip enabled by default, to disable add to .putout.json:

{
    "rules": {
        "remove-skip": false
    }
}

Usage

const {readFileSync} = require('fs');
const source = readFileSync('./1.js', 'utf8');
 
const putout = require('putout');
 
console.log(source);
// outputs
`
test.skip('some test', (t) => {
    t.end();
});
`
 
const result = putout(source, {
    plugins: [
        'remove-skip'
    ]
});
// returns
`
test('some test', (t) => {
    t.end();
});
`

License

MIT

Install

npm i @putout/plugin-remove-skip

DownloadsWeekly Downloads

858

Version

3.0.0

License

MIT

Unpacked Size

3.64 kB

Total Files

4

Last publish

Collaborators

  • avatar