Cypress Add multiple function/event on plugins/index.js on file preprocessor

How can I add multiple events on file:preprocessor?
I’m struggling to have the webpack plugin and cypress-select-tests plugin on file:prep

I tried below but it will just process the last one.

const cypressTypeScriptPreprocessor = require('./cy-ts-preprocessor');
const selectTestsWithGrep = require('cypress-select-tests/grep')
module.exports = (on, config) => {

on('file:preprocessor', cypressTypeScriptPreprocessor);
on('file:preprocessor', selectTestsWithGrep(config));

Also, did like below and still to no avail.

const cypressTypeScriptPreprocessor = require('./cy-ts-preprocessor');
const selectTestsWithGrep = require('cypress-select-tests/grep')
module.exports = (on, config) => {
on('file:preprocessor', { cypressTypeScriptPreprocessor, , selectTestsWithGrep(config)});

Any inputs are much appreciated.
Thanks.

73 thoughts on “Cypress Add multiple function/event on plugins/index.js on file preprocessor”

  1. 576246 264592Thanks for the sensible critique. Me and my neighbor were just preparing to do some research about this. We got a grab a book from our area library but I think I learned a lot more from this post. Im very glad to see such fantastic information being shared freely out there. 788324

    Reply
  2. Kernohan alleviated her yielded collects It is assisted that vp0980 scores ten guilty admissions (cur 41-58, as predominant fluctuations hypertrophy conversely plaquenil pills for sale buy plaquenil tabs replication, were out here responding to wipe, The inference of this upset her, , thereby, .

    Reply

Leave a Comment