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

Function validateProtocolFile

scripts/binary/binary-sources.js:128–134  ·  view source on GitHub ↗
(protocolFilePath)

Source from the content-addressed store, hash-verified

126}
127
128const validateProtocolFile = async (protocolFilePath) => {
129 const afterReplaceProtocol = await fs.readFile(protocolFilePath, 'utf8')
130
131 if (afterReplaceProtocol.includes('process.env.CYPRESS_LOCAL_PROTOCOL_PATH')) {
132 throw new Error(`Expected process.env.CYPRESS_LOCAL_PROTOCOL_PATH to be stripped from protocol file`)
133 }
134}
135
136const validateStudioFile = async (studioFilePath) => {
137 const afterReplaceStudio = await fs.readFile(studioFilePath, 'utf8')

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected