Closed impeiran closed 1 month ago
the following's can reappear in: https://github.com/impeiran/vue-enterprise-boilerplate
jest doesnt support webpack's API: require.context, and then it occurs the error i found a solution to resolve it. from: https://stackoverflow.com/questions/38332094/how-can-i-mock-webpacks-require-context-in-jest/54151648#54151648
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.
I'm having the same issue.
I don't know how to mock this as I'm new to unit testing in Jest.
the following's can reappear in: https://github.com/impeiran/vue-enterprise-boilerplate
jest doesnt support webpack's API: require.context, and then it occurs the error
i found a solution to resolve it. from: https://stackoverflow.com/questions/38332094/how-can-i-mock-webpacks-require-context-in-jest/54151648#54151648
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](https://user-images.githubusercontent.com/32994681/92711967-9ab86180-f38b-11ea-8594-df60b9abe20a.png)