Skip to content

[Question] params in callback of beforeMount hook in js (not ts) undefined #20289

@oliver-freudrich-packwise

Description

Hey,
I am not quite sure if it is a bug but maybe I am just using it wrong.

I am using the beforeMount hook after this bugfix #18812 in this way:

import { beforeMount } from '@playwright/experimental-ct-vue2/hooks';

beforeMount(data => {
  console.log(data);
});

but data only contains a hooksConfig which is undefined. The console.log in the playwright report says {hooksConfig: undefined}. I wanted to add things like app.use or app.config but the app is not existing nor the instance.
Version of playwright and the experimental-ct-vue2 is 1.29.2 so it should be the latest.

Is this a bug or am I using it wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions