(protocolFilePath)
| 126 | } |
| 127 | |
| 128 | const validateProtocolFile = async (protocolFilePath) => { |
| 129 | const afterReplaceProtocol = await fs.readFile(protocolFilePath, 'utf8') |
| 130 | |
| 131 | if (afterReplaceProtocol.includes('process.env.CYPRESS_LOCAL_PROTOCOL_PATH')) { |
| 132 | throw new Error(`Expected process.env.CYPRESS_LOCAL_PROTOCOL_PATH to be stripped from protocol file`) |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | const validateStudioFile = async (studioFilePath) => { |
| 137 | const afterReplaceStudio = await fs.readFile(studioFilePath, 'utf8') |