question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.LegacyFakeTimers is not a constructor

See original GitHub issue

Hello,

this is the case as of the latest version.

Apologies for not adding more context, but I guess it should do it.

    TypeError: _fakeTimers(...).LegacyFakeTimers is not a constructor

      at new JSDOMEnvironment (node_modules/jest-environment-jsdom/build/index.js:127:23)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
Summer-andycommented, Aug 26, 2020

you can use “jest”: “24.3.1” to have a try!

0reactions
github-actions[bot]commented, May 11, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: _fakeTimers(...).LegacyFakeTimers is not a ...
LegacyFakeTimers is not a constructor at new NodeEnvironment (node_modules/jest-environment-node/build/index.js:123:23).
Read more >
TypeError: _fakeTimers(…).JestFakeTimers is not a constructor
JestFakeTimers is not a constructor To Reproduce Steps to reproduce the behavior: Write test cases in Node js project Set test: 'jest' ...
Read more >
TypeError: "x" is not a constructor - JavaScript - MDN Web Docs
The JavaScript exception "is not a constructor" occurs when there was an attempt to use an object or a variable as a constructor,...
Read more >
[Solved]-_reactNative2.default.DataSource is not a constructor ...
DataSource is not a constructor-React Native. ... LegacyFakeTimers is not a constructor · Trying to access state in form handler gives default state...
Read more >
Problems with using useFakeTimers('modern') in a create ...
"test": "react-scripts test --env=jsdom-sixteen",. It still does not pass modern implementation of fake timer to its environment. Jest 26 ships ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found