enzymejs / enzymejs/enzyme

Using enzyme with react-rails (asset pipeline)

Open
#264 19 comments 10 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
19.8k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

This is more of an inquiry. We have a fairly large Rails application and are transitioning much of the front end work to React. This means that we are using the Rails asset pipeline rather than a module system. :(

I really like the API of enzyme and would love to find a way to use it within my front end testing suite. I'm using [Teaspoon](https://github.com/modeset/teaspoon) with Jasmine underneath. I'm wondering if there is any way to utilize enzyme in a non-module (globals) environment without access to `require`?

Any help is appreciated. Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.