Skip to content

Expo Web Broken after integrating Cavy #188

Description

@YahyaBagia

Just implemented Cavy into my expo project that runs on Android, iOS and Web (managed workflow). Test cases are working properly on Android and iOS but the app now fails to run on Web (non testing mode). It shows the following error :

/node_modules/cavy/src/Tester.js 127:6
Module parse failed: Unexpected token (127:6)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
render() {
|     return (
>       <TesterContext.Provider key={this.state.key} value={this.testHookStore}>
|         {Children.only(this.props.children)}
|       </TesterContext.Provider>

A couple of google search suggests creating / modifying webpack.config.js or .babelrc. My project doesn't have any of them. It's fine that cavy doesn't yet support testing on Web. I just want my app to be running on Web as usual.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions