refactor: init cypress config

This commit is contained in:
Simon Priet
2021-09-06 00:54:10 +02:00
parent 9e2991e668
commit e00a147b5c
29 changed files with 2309 additions and 0 deletions

14
cypress/plugins/index.js Normal file
View 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())
}