jestjs/jest

ESM Modules implementations leak memory

Open

#9959 opened on May 3, 2020

View on GitHub
 (4 comments) (4 reactions) (0 assignees)TypeScript (45,361 stars) (6,653 forks)batch import
:bug: BugES ModulesHelp WantedPinnedUpstream Bug

Description

🐛 Bug Report

The new experimental implementation leaks memory.

To Reproduce

Steps to reproduce the behavior:

Using node 13 or 14 (for unflagged ESM)

$ git clone git@github.com:facebook/jest.git
$ cd jest
$ yarn
$ cd e2e/native-esm
$ node --experimental-vm-modules ../../packages/jest/bin/jest.js --detect-leaks

Expected behavior

It should not leak

Link to repl or repo (highly encouraged)

This repo

Contributor guide