Skip to content

expose jsdom instance for config in tests #20

Description

@zcrumbo

This popped up while trying to write tests that involved sessionStorage - there's no way to do things like change jsdom's window.location.href without having access to the jsdom instance itself.
Can we expose a reference to it as a global in setup script?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions