Skip to content

Importing "expect-webdriverio" should not introduce expect symbol in the global scope in type level #1492

@naruaway

Description

@naruaway

Just writing import { expect } from 'expect-webdriverio' will load jest-global.d.ts due to this exports specifier, which makes expect symbol available in the global scope in type-level.

However, when using it in a standalone script, there is no expect in runtime so this causes a mismatch between runtime and types.

Note that this is the case as of v4.11.9 (3fdc1bd)

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