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

Function validateStudioFile

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected