Repository navigation
Mocked type is missing in @suites/unit
#473
Replies: 9 comments 7 replies
|
Hi, Thank you for submitting this issue. I'll take a look and update here soon! |
|
I will look into this issue in October and try and solve it. |
|
@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 :) |
|
https://github.com/qballer/suites_issue_426 |
|
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? |
|
@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. |
|
Fixed in suites-dev/suites.dev@fde85a4, see https://suites.dev/docs/overview/installation#type-reference-configuration @tomcastro - any updates? |
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions