8000 can jest support tree-shaking · Issue #11230 · jestjs/jest · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
can jest support tree-shaking #11230
Closed
Closed
@MuYunyun

Description

@MuYunyun

🚀 Feature Proposal

Can jest support tree-shaking to prevent mistakes that could have been avoided in jest.

Motivation

There is two function exported from XXX package.

export { default as A } from './A'
export { default as B } from './B'

I only use A function fron XXX package. Howerver, It has an error on B function in Jest.

It's sad I'm not expect it has an error on B function because I don't use it.

Example

Pitch

Why does this feature belong in the Jest core platform?

Common feature proposals that do not typically make it to core:

  • New matchers (see jest-extended)
  • Changes to the default reporter (use custom reporters instead)
  • Changes to node/jsdom test environments (use custom environments instead)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0