(cyPromptFilePath)
| 142 | } |
| 143 | |
| 144 | const validateCyPromptFile = async (cyPromptFilePath) => { |
| 145 | const afterReplaceCyPrompt = await fs.readFile(cyPromptFilePath, 'utf8') |
| 146 | |
| 147 | if (afterReplaceCyPrompt.includes('process.env.CYPRESS_LOCAL_CY_PROMPT_PATH')) { |
| 148 | throw new Error(`Expected process.env.CYPRESS_LOCAL_CY_PROMPT_PATH to be stripped from cy prompt file`) |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | module.exports = { |
| 153 | getEncryptionFileSource, |