UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

20 lines (16 loc) 273 B
/// <reference types="cypress" /> const state = {} /** * @type {Cypress.PluginConfig} */ module.exports = (on) => { on('task', { incrState (arg) { state[arg] = state[arg] + 1 || 1 return null }, getState () { return state }, }) }