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