beaver-logger icon indicating copy to clipboard operation
beaver-logger copied to clipboard

Add NodeJS tests for client

Open dmikey opened this issue 7 years ago • 2 comments

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

dmikey avatar Aug 31 '17 18:08 dmikey

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

aamangupta avatar Oct 05 '21 19:10 aamangupta

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.

ispedals avatar Nov 01 '21 02:11 ispedals