Skip to content

Cant import Mocked or StubbedInstance from package @suites/unit #668

@LeoCaprile

Description

@LeoCaprile

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

install '@suites/unit' lib, try to import mocked type, won't work.

Maybe this change were made on purpose, but the docs says other way.

Minimum reproduction code

https://codesandbox.io/p/devbox/nervous-glade-4fqzwq?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522cm92ao7s500072v6ksf0qtcdg%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522cm92ao7s500022v6k68m2d7xw%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522cm92ao7s500042v6krdn5g5w5%2522%257D%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522cm92ao7s500062v6khllpjzg2%2522%257D%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cm92ao7s500022v6k68m2d7xw%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm92ao7s400012v6k7m2pi0r0%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%252C%257B%2522id%2522%253A%2522cm92aoqo4000y2v6kk25t7g7a%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A3%252C%2522startColumn%2522%253A44%252C%2522endLineNumber%2522%253A3%252C%2522endColumn%2522%253A44%257D%255D%252C%2522filepath%2522%253A%2522%252Fsrc%252Fapp.controller.spec.ts%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522id%2522%253A%2522cm92ao7s500022v6k68m2d7xw%2522%252C%2522activeTabId%2522%253A%2522cm92aoqo4000y2v6kk25t7g7a%2522%257D%252C%2522cm92ao7s500062v6khllpjzg2%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm92ao7s500052v6kudrhjzpl%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A3000%257D%255D%252C%2522id%2522%253A%2522cm92ao7s500062v6khllpjzg2%2522%252C%2522activeTabId%2522%253A%2522cm92ao7s500052v6kudrhjzpl%2522%257D%252C%2522cm92ao7s500042v6krdn5g5w5%2522%253A%257B%2522id%2522%253A%2522cm92ao7s500042v6krdn5g5w5%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm92ao7s500032v6k2y0d1eyw%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%257D%255D%252C%2522activeTabId%2522%253A%2522cm92ao7s500032v6k2y0d1eyw%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

Steps to reproduce

install @suites/unit lib, try to import mocked type, won't work.

Expected behavior

install @suites/unit lib, try to import mocked type, actually work.

Suites version

No response

Node.js version

No response

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions