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

Adds jest and @testing-library/react #4

Merged
merged 1 commit into from
Dec 12, 2019
Merged

Adds jest and @testing-library/react #4

merged 1 commit into from
Dec 12, 2019

Conversation

dbrudner
Copy link
Contributor

A couple notes

-Separated out the demo into two files, app.js and index.js. ReactDOM's render operation throws an error when jest runs testing, as document.querySelector('.App') returns null in that env. It sounds like we're not going to use the demo for testing, so I can separate that into its own commit so it can be easily reverted if necessary.

-Had to change .babelrc to use babel.config.js, as we're importing recurly.js from node_modules in jest.setup.js, and it must be transpiled (jestjs/jest#8365)

babel.config.js Outdated
'plugins': [
'transform-class-properties'
]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indentation is a bit wonky and missing semicolon

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

Successfully merging this pull request may close these issues.

2 participants