(encryptionFilePath)
| 58 | } |
| 59 | |
| 60 | const getEncryptionFileSource = async (encryptionFilePath) => { |
| 61 | const fileContents = await fs.readFile(encryptionFilePath, 'utf8') |
| 62 | |
| 63 | if (!fileContents.includes(`test: CY_TEST,`)) { |
| 64 | throw new Error(`Expected to find test key in cloud encryption file`) |
| 65 | } |
| 66 | |
| 67 | return fileContents.replace(`test: CY_TEST,`, '').replace(/const CY_TEST = `(.*?)`/, '') |
| 68 | } |
| 69 | |
| 70 | const validateEncryptionFile = async (encryptionFilePath) => { |
| 71 | const afterReplaceEncryption = await fs.readFile(encryptionFilePath, 'utf8') |
no test coverage detected