test(verify): not publishing placeholder versions
This commit is contained in:
		
							parent
							
								
									96757ac645
								
							
						
					
					
						commit
						3250b9a1af
					
				| @ -4,16 +4,15 @@ var efh = require('error-first-handler') | ||||
| var nixt = require('nixt') | ||||
| 
 | ||||
| module.exports = function (test, createModule) { | ||||
|   createModule({ | ||||
|     repository: {}, | ||||
|     scripts: { | ||||
|       prepublish: 'semantic-release pre --no-token' | ||||
|     } | ||||
|   }, efh()(function (name, cwd) { | ||||
|     test('verify', function (t) { | ||||
|   test('verify', function (t) { | ||||
|     createModule({ | ||||
|       repository: {}, | ||||
|       scripts: { | ||||
|         prepublish: 'semantic-release pre --no-token' | ||||
|       } | ||||
|     }, efh()(function (name, cwd) { | ||||
|       t.test('verify package and options before publishing', function (t) { | ||||
|         t.plan(1) | ||||
| 
 | ||||
|         nixt() | ||||
|           .cwd(cwd) | ||||
|           .env('CI', true) | ||||
| @ -29,6 +28,23 @@ module.exports = function (test, createModule) { | ||||
|             t.error(err, 'nixt') | ||||
|           }) | ||||
|       }) | ||||
|     }) | ||||
|   })) | ||||
|     })) | ||||
| 
 | ||||
|     createModule({ | ||||
|       version: '1.0.0-semantically-released' | ||||
|     }, efh()(function (name, cwd) { | ||||
|       t.test('not publishing placeholder versions', function (t) { | ||||
|         t.plan(1) | ||||
| 
 | ||||
|         nixt() | ||||
|           .cwd(cwd) | ||||
|           .env('CI', true) | ||||
|           .run('npm publish --semantic-release-rerun') | ||||
|           .code(1) | ||||
|           .end(function (err) { | ||||
|             t.error(err, 'nixt') | ||||
|           }) | ||||
|       }) | ||||
|     })) | ||||
|   }) | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user