You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same thing, using typescript with target "es6" or any other. Works fine in prod tho... Seems like this lib has some issue with jest/ts-jest. Don't have time to debug -_-
TypeError: Class constructor LRUCache cannot be invoked without 'new' - getting this on useragent import statement on all tests, that rely on useragent.
Hi,
i am writing tests in Jest.
testmodule.js
import useragent from 'useragent';
export sample()
{
return useragent.parse(value);
}
test.js
import sample from './testmodule.js'
describe('my reducer', () => {
it('should return the initial state', () => {
expect("hello").toEqual("hello")
})
when i run this test, "jest", the file hangs. If i comment the useragent lib import, then my test runs successfully.
Env:
React- 16.x
Node - 8.x
Can you please help me out here on what could be the issue here? Thanks
The text was updated successfully, but these errors were encountered: