Skip to content

Ship UMD build #129

Closed
Closed
@jalvarado91

Description

@jalvarado91

Describe the feature you'd like:

It would be awesome if there was a umd build so that this could be used with something like QUnit which is run in the browser. This way the lib could be included via a script tag either downloaded or with unpkg and be ready to use in environments without module loading.

This might make more sense over in the dom-testing-library repo, but I'm putting it here since the intended use is with react.

Suggested implementation:

Similar to React or other libs that export umd builds, it would mean exporting exporting a global like ReactTestingLib or maybe something shorter (open to suggestions).

P.S. I can work on a PR for this feature. Seems like it would be fun.

Describe alternatives you've considered:

Switch test runners (big effort).

Teachability, Documentation, Adoption, Migration Strategy:

Build example of using this in an environment with no module loading. Purely script tags in a page.

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