You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
573 B

var assert = require( 'assert' );
var path = require( 'path' );
module.exports = {
description: 'throws error only with first plugin transform',
options: {
plugins: [
{
name: 'plugin1',
transform () {
throw Error( 'Something happened 1' );
}
},
{
name: 'plugin2',
transform () {
throw Error( 'Something happened 2' );
}
}
]
},
error: {
code: 'BAD_TRANSFORMER',
message: `Error transforming main.js with 'plugin1' plugin: Something happened 1`,
plugin: 'plugin1',
id: path.resolve( __dirname, 'main.js' )
}
};