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

Function validateCyPromptFile

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

Source from the content-addressed store, hash-verified

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

Callers 1

after-pack-hook.jsFile · 0.85

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected