refactor: init cypress config
This commit is contained in:
14
cypress/plugins/index.js
Normal file
14
cypress/plugins/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/// <reference types="cypress" />
|
||||
// ***********************************************************
|
||||
const cucumber = require('cypress-cucumber-preprocessor').default
|
||||
|
||||
// This function is called when a project is opened or re-opened (e.g. due to
|
||||
// the project's config changing)
|
||||
|
||||
/**
|
||||
* @type {Cypress.PluginConfig}
|
||||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = (on, config) => {
|
||||
on('file:preprocessor', cucumber())
|
||||
}
|
Reference in New Issue
Block a user