import fs from 'fs-extra' ; import path from 'path' ; import * as tmp from 'tmp' ; import { PackageInfo } from '../types/PackageInfo' ; export const testTag = 'testbeachballtag' ; const testPackage = { name : 'testbeachballpackage' , version : '0.6.0' , } ; var tmpPackageFile = path . join ( tmp . dirSync ( ) . name , 'package.json' ) ; fs . writeJSONSync ( tmpPackageFile , testPackage , { spaces : 2 } ) ; export const testPackageInfo = { name : testPackage . name , packageJsonPath : tmpPackageFile , version : testPackage . version , private : false , combinedOptions : { gitTags : true , tag : testTag , defaultNpmTag : 'latest' , disallowedChangeTypes : [ ] , } , packageOptions : { gitTags : true , tag : testTag , defaultNpmTag : 'latest' , disallowedChangeTypes : [ ] , } , } ;