Closed anrolmar closed 3 years ago
Hi.
I'm trying to mock xml2js library with jest in my unit tests, but I get the message, Cannot find module 'xmls2js'
Cannot find module 'xmls2js'
I tried it, with jest.mock('xmls2js');
jest.mock('xmls2js');
I have no idea about jest but the library is called xml2js, there is an s too much in your call, maybe that is the issue?
jest
xml2js
s
That's it. Sorry
Hi.
I'm trying to mock xml2js library with jest in my unit tests, but I get the message,
Cannot find module 'xmls2js'
I tried it, with
jest.mock('xmls2js');