(cyPromptFilePath)
| 120 | } |
| 121 | |
| 122 | const getCyPromptFileSource = async (cyPromptFilePath) => { |
| 123 | const fileContents = await fs.readFile(cyPromptFilePath, 'utf8') |
| 124 | |
| 125 | if (!fileContents.includes('process.env.CYPRESS_LOCAL_CY_PROMPT_PATH')) { |
| 126 | throw new Error(`Expected to find CYPRESS_LOCAL_CY_PROMPT_PATH in cy prompt file`) |
| 127 | } |
| 128 | |
| 129 | return fileContents.replaceAll('process.env.CYPRESS_LOCAL_CY_PROMPT_PATH', 'undefined') |
| 130 | } |
| 131 | |
| 132 | const validateProtocolFile = async (protocolFilePath) => { |
| 133 | const afterReplaceProtocol = await fs.readFile(protocolFilePath, 'utf8') |
no test coverage detected