diff --git a/test/function/does-not-hang-on-missing-module/_config.js b/test/function/does-not-hang-on-missing-module/_config.js new file mode 100644 index 0000000..afcdbcc --- /dev/null +++ b/test/function/does-not-hang-on-missing-module/_config.js @@ -0,0 +1,8 @@ +var assert = require( 'assert' ); + +module.exports = { + description: 'does not hang on missing module (#53)', + error: function ( error ) { + assert.ok( /Could not find package unlessYouCreatedThisFileForSomeReason/.test( error.message ) ); + } +}; diff --git a/test/function/does-not-hang-on-missing-module/main.js b/test/function/does-not-hang-on-missing-module/main.js new file mode 100644 index 0000000..f749c99 --- /dev/null +++ b/test/function/does-not-hang-on-missing-module/main.js @@ -0,0 +1,2 @@ +import doesNotExist from 'unlessYouCreatedThisFileForSomeReason'; +doesNotExist();