Skip to content

[test-runner] Missing types for the expect library #7099

@fbasso

Description

@fbasso

Hi !

In vscode, the expect library imported from '@playwright/test' proposes only a few choices:

image

And using the available assertions displays an error. For example:

import { expect } from '@playwright/test';
expect(...).toBe(...)
// Property 'toBe' does not exist on type 'Matchers<string>'.ts(2339)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions