mirror of https://github.com/lukechilds/rollup.git
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.
21 lines
447 B
21 lines
447 B
var assert = require( 'assert' );
|
|
var path = require( 'path' );
|
|
|
|
var mockedValue = {
|
|
val: 'A value'
|
|
};
|
|
|
|
module.exports = {
|
|
description: 'allows a nonexistent relative module to be configured as external',
|
|
options: {
|
|
external: [ path.join( __dirname, './nonexistent-relative-dependency.js') ]
|
|
},
|
|
context: {
|
|
require: function () {
|
|
return mockedValue;
|
|
}
|
|
},
|
|
exports: function () {
|
|
assert.equal( mockedValue.wasAltered, true );
|
|
}
|
|
};
|
|
|