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
useFakeTimers with typescript #1740
Comments
@aboeglin did you find a solution to this problem? |
Whatever the reason is for this problem, it is highly likely to have nothing to do with TypeScript per se. |
I am facing the same problem after upgrading from I made a silly little test to showcase the issue:
The test will fail with the following errors:
|
@iraklisg I cannot reproduce this locally or in this online demo. Try making a new demo in a fresh directory and make sure to install afresh (removing node_modules first). If it is still an issue, make a new issue. |
I try to make an es6 project move to typescript. It's still pretty small at the moment. In the current test file there are no dependencies except the test file, chai and mocha.
I import sinon like this:
But it then throws at me when running the tests:
Everything else works just fine. It's only useFakeTimers which seems to be a little brittle somehow. I even tried to install types for lolex just in case, but that did not solve the issue.
The text was updated successfully, but these errors were encountered: