jestjs/jest

ESM Modules implementations leak memory

Open

#9,959 创建于 2020年5月3日

在 GitHub 查看
 (4 评论) (4 反应) (0 负责人)TypeScript (45,361 star) (6,653 fork)batch import
:bug: BugES ModulesHelp WantedPinnedUpstream Bug

描述

🐛 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

贡献者指南