Skip to content

Commit

Permalink
get test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 11, 2017
1 parent 17b2c49 commit bb63174
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion test/cli/multiple-configs/_config.js
@@ -1,4 +1,10 @@
const assert = require('assert');

module.exports = {
description: 'generates output file when multiple configurations are specified and one build fails',
command: 'rollup -c'
command: 'rollup -c',
error: err => {
assert.ok(/Unexpected Exception/.test(err.message));
return true;
}
};
4 changes: 2 additions & 2 deletions test/test.js
Expand Up @@ -543,8 +543,8 @@ describe( 'rollup', function () {
exec( command, {}, ( err, code, stderr ) => {
if ( err ) {
if ( config.error ) {
config.error( err );
return done();
const shouldContinue = config.error( err );
if (!shouldContinue) return done();
} else {
throw err;
}
Expand Down

0 comments on commit bb63174

Please sign in to comment.