Skip to content

Commit 48b8321

Browse files
authored
Rename onInit handler (#47)
1 parent 71a1877 commit 48b8321

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function runCypressTests (baseUrl, record, spec, group, tag) {
8787
})
8888
}
8989

90-
async function onInit(arg) {
90+
async function install(arg) {
9191
debug('installing Cypress binary just in case')
9292
const runOptions = debug.enabled ? {} : {stdio: 'ignore'}
9393
await arg.utils.run('cypress', ['install'], runOptions)
@@ -144,8 +144,9 @@ async function postBuild({ fullPublishFolder, record, spec, group, tag, buildUti
144144
const hasRecordKey = () => typeof process.env.CYPRESS_RECORD_KEY === 'string'
145145

146146
module.exports = {
147-
onInit,
148147
onPreBuild: async (arg) => {
148+
install(arg)
149+
149150
debug('cypress plugin preBuild inputs %o', arg.inputs)
150151
const preBuildInputs = arg.inputs && arg.inputs.preBuild
151152
if (!preBuildInputs) {

0 commit comments

Comments
 (0)