MCPcopy Create free account
hub / github.com/cypress-io/cypress / validateEncryptionFile

Function validateEncryptionFile

scripts/binary/binary-sources.js:70–76  ·  view source on GitHub ↗
(encryptionFilePath)

Source from the content-addressed store, hash-verified

68}
69
70const validateEncryptionFile = async (encryptionFilePath) => {
71 const afterReplaceEncryption = await fs.readFile(encryptionFilePath, 'utf8')
72
73 if (afterReplaceEncryption.includes('CY_TEST')) {
74 throw new Error(`Expected test key to be stripped from cloud encryption file`)
75 }
76}
77
78const getCloudEnvironmentFileSource = async (cloudApiFilePath) => {
79 const fileContents = await fs.readFile(cloudApiFilePath, 'utf8')

Callers 1

after-pack-hook.jsFile · 0.85

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected