Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport] Remove the index signature from TestContext #1302

Merged
merged 1 commit into from Dec 21, 2022

Conversation

chriskrycho
Copy link
Contributor

@chriskrycho chriskrycho commented Dec 21, 2022

This incorporates the same basic fix for isRenderingTestContext as the original (#1301) does for isTestContext, since that mechanic changes between v2 and v3.

@chriskrycho chriskrycho changed the title Remove the index signature from TestContext [backport] Remove the index signature from TestContext Dec 21, 2022
This incorporates the same basic fix for `isRenderingTestContext` as
the original does for `isTestContext`, since that mechanic changes
between v2 and v3.

(cherry picked from commit cba01be)
@eugenioenko
Copy link

eugenioenko commented Dec 22, 2022

Because the type BaseContext was switched here from a dictionary to an object I'm seeing this type errors in the integration tests

Property 'element' does not exist on type 'TestContext' when accessing it with this.element?.textContent.

Make sense, element doesn't exist in type object, and the TestContext that inherits from BaseContext doesn't define the element property.

And yet, element is definitely a property in TestContext.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants