import { isCanary } from '../../src/util/is-canary' ; import getUpdateCommand from '../../src/util/get-update-command' ; describe ( 'getUpdateCommand' , ( ) => { it ( 'should detect update command' , async ( ) => { const updateCommand = await getUpdateCommand ( ) ; expect ( updateCommand ) . toEqual ( `npm i vercel@${ isCanary ( ) ? 'canary' : 'latest' }` ) ; } ) ; } ) ;