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

Error in test unit. something wrong with config, maybe #219

Closed
impeiran opened this issue Sep 10, 2020 · 1 comment
Closed

Error in test unit. something wrong with config, maybe #219

impeiran opened this issue Sep 10, 2020 · 1 comment

Comments

@impeiran
Copy link

the following's can reappear in: https://github.com/impeiran/vue-enterprise-boilerplate

  1. jest doesnt support webpack's API: require.context, and then it occurs the error
    image
    i found a solution to resolve it. from: https://stackoverflow.com/questions/38332094/how-can-i-mock-webpacks-require-context-in-jest/54151648#54151648

  2. after solving the first problem, it comes the second:
    imported module but undefined, i have no idea to fix it, and im pretty sure the path and the babel config are fine.
    image

@beamsies
Copy link

beamsies commented Oct 7, 2020

I'm having the same issue.

I don't know how to mock this as I'm new to unit testing in Jest.

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

3 participants