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

Function validateStudioFile

scripts/binary/binary-sources.js:140–146  ·  view source on GitHub ↗
(studioFilePath)

Source from the content-addressed store, hash-verified

138}
139
140const validateStudioFile = async (studioFilePath) => {
141 const afterReplaceStudio = await fs.readFile(studioFilePath, 'utf8')
142
143 if (afterReplaceStudio.includes('process.env.CYPRESS_LOCAL_STUDIO_PATH')) {
144 throw new Error(`Expected process.env.CYPRESS_LOCAL_STUDIO_PATH to be stripped from studio file`)
145 }
146}
147
148const validateCyPromptFile = async (cyPromptFilePath) => {
149 const afterReplaceCyPrompt = await fs.readFile(cyPromptFilePath, 'utf8')

Callers 1

after-pack-hook.jsFile · 0.85

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected