/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/jest-runtime/src/internals/TestMainModule.ts
18 строк
502 B
Simen Bekkhus
chore(runtime): lift module executor (#16084)
03 май 2026, 00:12
Не верифицирован
03 май 2026, 00:12
6abdcf1
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type {Module} from '@jest/environment'; // Shared cell for `require.main`: the executor writes it when the test file // loads, the require-builder reads it when attaching `module.require`. export class TestMainModule { current: Module | null = null; reset(): void { this.current = null; } }