qunit-dom
qunit-dom copied to clipboard
Issue with assert.dom(this.element) types with latest Ember and QUnit
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",
Yes, we intentionally do not accept document because it is missing some APIs
Is this an issue with ember-qunit? cc @rwjblue
This is still an issue. Any updates here?