| 96 | } |
| 97 | |
| 98 | const getProtocolFileSource = async (protocolFilePath) => { |
| 99 | const fileContents = await fs.readFile(protocolFilePath, 'utf8') |
| 100 | |
| 101 | if (!fileContents.includes('process.env.CYPRESS_LOCAL_PROTOCOL_PATH')) { |
| 102 | throw new Error(`Expected to find CYPRESS_LOCAL_PROTOCOL_PATH in protocol file`) |
| 103 | } |
| 104 | |
| 105 | return fileContents.replaceAll('process.env.CYPRESS_LOCAL_PROTOCOL_PATH', 'undefined') |
| 106 | } |
| 107 | |
| 108 | const getStudioFileSource = async (studioFilePath) => { |
| 109 | const fileContents = await fs.readFile(studioFilePath, 'utf8') |