Skip to content

File preprocessor doesn't work for component testsΒ #257

@KoenBrouwer

Description

@KoenBrouwer

Hi,

We tried this setup also with component tests, with the following settings:

    component: {
        setupNodeEvents: (on, config) => {
            on("file:preprocessor", tagify(config));
        },
    },

This resulted in the following errors:

> Suite argument "title" must be a string. Received type "object"
> Test argument "title" must be a string. Received type "object"

For those trying to find out why this is not working, please see: cypress-io/cypress#21992 (comment). The Preprocessor API is only available for E2E-tests, not for component tests.

I just spent an entire afternoon trying to make this work. Hope this helps. πŸ˜„

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions