MCPcopy
hub / github.com/codeceptjs/CodeceptJS / getCurrentBetaVersion

Function getCurrentBetaVersion

runok.cjs:590–602  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588 },
589
590 getCurrentBetaVersion() {
591 try {
592 const output = execSync('npm view codeceptjs versions --json').toString()
593 const versions = JSON.parse(output)
594 const betaVersions = versions.filter(version => version.includes('beta'))
595 const latestBeta = betaVersions.length ? betaVersions[betaVersions.length - 1] : null
596 console.log(`Current beta version: ${latestBeta}`)
597 return latestBeta
598 } catch (error) {
599 console.error('Error fetching package versions:', error)
600 process.exit(1)
601 }
602 },
603
604 publishNextBetaVersion() {
605 const currentBetaVersion = this.getCurrentBetaVersion()

Callers

nothing calls this directly

Calls 4

filterMethod · 0.80
includesMethod · 0.80
logMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected