@@ -16,6 +16,11 @@ const failOnWarn = (t) => (warning) =>
16
16
17
17
const getLastPathFragment = ( path ) => path && path . split ( / [ \\ / ] / ) . slice ( - 1 ) [ 0 ] ;
18
18
19
+ test ( 'exposes plugin version' , ( t ) => {
20
+ const plugin = nodeResolve ( ) ;
21
+ t . regex ( plugin . version , / ^ \d + \. \d + \. \d + / ) ;
22
+ } ) ;
23
+
19
24
test ( 'finds a module with jsnext:main' , async ( t ) => {
20
25
const bundle = await rollup ( {
21
26
input : 'jsnext.js' ,
@@ -487,13 +492,13 @@ test('passes on "isEntry" flag', async (t) => {
487
492
]
488
493
} ) ;
489
494
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 } ]
493
498
] ) ;
494
499
} ) ;
495
500
496
- test . only ( 'passes on custom options' , async ( t ) => {
501
+ test ( 'passes on custom options' , async ( t ) => {
497
502
const resolveOptions = [ ] ;
498
503
await rollup ( {
499
504
input : 'entry/other.js' ,
0 commit comments