Skip to content

Docs: "Component testing" of "Context" article edits #18462

Description

@svew

Describe the bug

Some doc changes I'd like to see to the Context page, especailly in the "Component testing" section:

  • The title "Component testing" is a bit misleading (this feature isn't specific to nor limited to testing), could we name it something like "Mounting components with context"?
  • It's unclear to me reading through this documentation the scope of context when you call "setContext" within a wrapper. I imagine that because it's being called within "mount", that the shared context is relegated to that specific mount call, but it's not clear to me. Can we have some text mentioning specifically that the wrapper ensures the context is only assigned to that mounted component?

Reproduction

N/A

Logs

N/A

System Info

N/A

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions