putout-plugin-remove-only

putout plugin adds ability to find and remove test.only calls.
Install
npm i @putout/plugin-remove-only
Rule
Rule remove-only is enabled by default, to disable add to .putout.json:
{
"rules": {
"remove-only": false
}
}
Code Example
const {readFileSync} = require('fs');
const source = readFileSync('./1.js', 'utf8');
const putout = require('putout');
console.log(source);
`
test.only('some test', (t) => {
t.end();
});
`
const result = putout(source, {
plugins: [
'remove-only'
]
});
`
test('some test', (t) => {
t.end();
});
`
License
MIT