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.

26 lines
551 B

var assert = require( 'assert' );
module.exports = {
description: 'throws error only with first plugin transformBundle',
options: {
plugins: [
{
name: 'plugin1',
transformBundle: function () {
throw Error( 'Something happened 1' );
}
},
{
name: 'plugin2',
transformBundle: function () {
throw Error( 'Something happened 2' );
}
}
]
},
generateError: {
code: 'BAD_BUNDLE_TRANSFORMER',
plugin: 'plugin1',
message: `Error transforming bundle with 'plugin1' plugin: Something happened 1`
}
};