Mocked
type is missing in @suites/unit
#473
Replies: 7 comments 2 replies
-
Hi, Thank you for submitting this issue. I'll take a look and update here soon! |
Beta Was this translation helpful? Give feedback.
-
Plus one on this @omermorad 🙏 |
Beta Was this translation helpful? Give feedback.
-
I will look into this issue in October and try and solve it. |
Beta Was this translation helpful? Give feedback.
-
@roniavi @michaelcai - While @qballer works to resolve this problem, please try the following workaround: Try importing import type { Mocked } from '@suites/doubles.jest'; This is a workaround; in order to maintain consistency and library agnostic behavior (mocking library), the Tell me whether it was successful please :) |
Beta Was this translation helpful? Give feedback.
-
https://github.com/qballer/suites_issue_426 |
Beta Was this translation helpful? Give feedback.
-
I reconstructed the bug in the exact way described in the issue. https://github.com/qballer/suites_issue_426 It works out of the box as expected, but after installing an additional package (e.g Is missing: The same triple slash is missing in Manually adding that to the d.ts file fixes the problem. I've also noticed that the following is missing from Digging through the code, these are all added via post-install scripts of Which yarn version is being used? |
Beta Was this translation helpful? Give feedback.
-
@michaelcai @jeffrey-jian @roniavi (also related to #439 - @mbrunoviegas) Due to a known issue with Yarn v1.x's Please, let me know if it worked for you. |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Current behavior
Description:
The @suites/unit package does not export the Mocked type as expected. When trying to import the Mocked type from @suites/unit using:
I receive the following error message:
Module '"@suites/unit"' has no exported member named 'Mocked'.
Minimum reproduction code
no
Steps to reproduce
No response
Expected behavior
Please include the Mocked type in the package's exports, or provide documentation for an alternative way to mock objects if the Mocked type has been deprecated or replaced.
Suites version
3.0.0
Node.js version
20.16.0
In which operating systems have you tested?
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions