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

Function validateCyPromptFile

scripts/binary/binary-sources.js:144–150  ·  view source on GitHub ↗
(cyPromptFilePath)

Source from the content-addressed store, hash-verified

142}
143
144const 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
152module.exports = {
153 getEncryptionFileSource,

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected