nl_tokens: Update WebDriverAgentRunner project bundle ID with newBundleId . This method assumes project file is in the correct state .
pl_tokens: async function updateProjectFile ( agentPath , newBundleId ) { let projectFilePath = ` ${ agentPath } ${ PROJECT_FILE } ` ; try { // Assuming projectFilePath is in the correct state, create .old from projectFilePath await fs . copyFile ( projectFilePath , ` ${ projectFilePath } ` ) ; await replaceInFile ( projectFilePath , new RegExp ( WDA_RUNNER_BUNDLE_ID . replace ( '.' , '\.' ) , 'g' ) , newBundleId ) ; // eslint-disable-line no-useless-escape log . debug ( ` ${ projectFilePath } ${ newBundleId } ` ) ; } catch ( <mask> ) { log . debug ( ` ${ err . message } ` ) ; log . warn ( ` ${ projectFilePath } ` + ` ${ newBundleId } ` ) ; } }