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

Add NodeJS tests for client #12

Open
dmikey opened this issue Aug 31, 2017 · 2 comments
Open

Add NodeJS tests for client #12

dmikey opened this issue Aug 31, 2017 · 2 comments

Comments

@dmikey
Copy link

dmikey commented Aug 31, 2017

Client needs tests to check if it can run in a constrained environment (i.e. the JSC for React-Native).

@aamangupta
Copy link

can you tell more about more about this issue and let me work on this?

@ispedals
Copy link

ispedals commented Nov 1, 2021

This would be making test specifically for a react-native environment correct, as I don't think there's any other common environment that has limited implementation of Window and other browser globals.

I think the way to do this is to use Jest as the test runner and take the relevant pieces of react-native's configs for Jest to simulate running using JSC. The only downside of this is adding a dev dependency on jest just for this use case.

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

No branches or pull requests

4 participants