Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 96f266a

Browse files
committed
add test for #79
1 parent cfd00b4 commit 96f266a

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 42;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import foo from 'foo';
2+
3+
assert.equal( foo, 42 );

test/test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,4 +437,17 @@ describe( 'rollup-plugin-node-resolve', function () {
437437
assert.deepEqual(bundle.imports, []);
438438
});
439439
});
440+
441+
it( 'allows custom options', () => {
442+
return rollup.rollup({
443+
entry: 'samples/custom-resolve-options/main.js',
444+
plugins: [ nodeResolve({
445+
customResolveOptions: {
446+
moduleDirectory: 'js_modules'
447+
}
448+
}) ]
449+
}).then( bundle => {
450+
console.log( `bundle`, bundle )
451+
});
452+
});
440453
});

0 commit comments

Comments
 (0)