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

Function validateProtocolFile

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

Source from the content-addressed store, hash-verified

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

Callers 1

after-pack-hook.jsFile · 0.85

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected