-
Notifications
You must be signed in to change notification settings - Fork 674
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
TypeScript can't compile tests using Testcafe version >1.6.0 if module @types/jest is in the project #4435
Comments
Thank you for your report. This issue looks as a duplicate of #4405. The fix will be available in |
@AndreyBelym I'd put a note on this into https://github.com/DevExpress/testcafe/blob/master/docs/articles/documentation/test-api/typescript-support.md WDYT? |
I think it isn't necessary since this problem is fixed in [email protected]. For those people who like to precompile their tests, it's better to put a note in @types/jest README, since |
@AndreyBelym actually with I have types collision where my testcafe files work as expected because
while unit test files written in jest
there are multiple options
Do you have a suggestion how to resolve this problem? |
You will get |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
TypeScript can't compile tests using Testcafe version >1.6.0 if module @types/jest is in the project.
When I compile the tests I get the following compilation errors:
In this case test is of type jest.It instead of TestFn. There seems to be an issue in the declaration file index.d.ts - "Cannot redeclare block-scoped variable 'test'.ts(2451)"
The text was updated successfully, but these errors were encountered: