Skip to content

Issue with assert.dom(this.element) types with latest Ember and QUnit #1622

Description

@knownasilya

Getting type error like:

Argument of type 'Element | Document' is not assignable to parameter of type 'string | Element | null | undefined'.

The type of this.element is

TestContext.element: Element | Document

but assert.dom doesn't expect a Document.

"ember-source": "~4.5.0",
"@types/qunit": "^2.19.0",
"ember-qunit": "^5.1.5",
"qunit": "^2.19.1",
"qunit-dom": "^2.0.0",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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