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

[help] tests fails when migrate into swc/jest even use this tool. #26

Open
MahmoudMabrok opened this issue Feb 18, 2025 · 0 comments
Open

Comments

@MahmoudMabrok
Copy link

I keep see next errors.

Test suite failed to run

    /App_Path/node_modules/react-native-webview/lib/RNCWebViewNativeComponent.js: Could not find component config for native component

      1 | import React, { useState } from 'react';
      2 | import { View, Linking } from 'react-native';
    > 3 | import { WebView } from 'react-native-webview';

and

  ● Test suite failed to run

    ReferenceError: DIRECTIONS is not defined

      5 | }
      6 |
    > 7 | export default DIRECTIONS;

and

● Test suite failed to run

    TypeError: Cannot redefine property: default
        at Function.defineProperty (<anonymous>)

      150 | };
      151 |
    > 152 | jest.spyOn(useHookMock, 'default').mockImplementation(() => purchaseFlowResult);
          |      ^

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

No branches or pull requests

1 participant