@@ -16,6 +16,11 @@ const failOnWarn = (t) => (warning) =>
1616
1717const getLastPathFragment = ( path ) => path && path . split ( / [ \\ / ] / ) . slice ( - 1 ) [ 0 ] ;
1818
19+ test ( 'exposes plugin version' , ( t ) => {
20+ const plugin = nodeResolve ( ) ;
21+ t . regex ( plugin . version , / ^ \d + \. \d + \. \d + / ) ;
22+ } ) ;
23+
1924test ( 'finds a module with jsnext:main' , async ( t ) => {
2025 const bundle = await rollup ( {
2126 input : 'jsnext.js' ,
@@ -487,13 +492,13 @@ test('passes on "isEntry" flag', async (t) => {
487492 ]
488493 } ) ;
489494 t . deepEqual ( resolveOptions , [
490- [ 'other.js' , 'main.js' , { custom : void 0 , isEntry : true } ] ,
491- [ 'main.js' , void 0 , { custom : void 0 , isEntry : true } ] ,
492- [ 'dep.js' , 'main.js' , { custom : void 0 , isEntry : false } ]
495+ [ 'other.js' , 'main.js' , { custom : { } , isEntry : true } ] ,
496+ [ 'main.js' , void 0 , { custom : { } , isEntry : true } ] ,
497+ [ 'dep.js' , 'main.js' , { custom : { } , isEntry : false } ]
493498 ] ) ;
494499} ) ;
495500
496- test . only ( 'passes on custom options' , async ( t ) => {
501+ test ( 'passes on custom options' , async ( t ) => {
497502 const resolveOptions = [ ] ;
498503 await rollup ( {
499504 input : 'entry/other.js' ,
0 commit comments