Skip to content

Possibility to write testEnvironment in esm #10018

@kuka-radovan

Description

@kuka-radovan

🚀 Feature Proposal

It would be awesome if there will be possibility to create testEnvironment as esm. It is actually possible only as cjs.

Motivation

I need to test API of my server written as esm. I want to start it in testEnvironment so I will need to import it.

Pitch

From Jest v. 25.4.0 there is support of esm, so I believe, this feature is meaningful from this perspective.

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