/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
e2e/__tests__/explicitResourceManagement.test.ts
24 строки
648 B
Lenz Weber-Tronic
feat: add support for Explicit Resource Management to mocked functions (#14895)
20 фев 2024, 13:09
Не верифицирован
20 фев 2024, 13:09
63db50f
Код
Авторство
О чём код?
/** * 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 {resolve} from 'path'; import {onNodeVersions} from '@jest/test-utils'; import {runYarnInstall} from '../Utils'; import runJest from '../runJest'; const DIR = resolve(__dirname, '../explicit-resource-management'); beforeAll(() => { runYarnInstall(DIR); }); onNodeVersions('^18.18.0 || >=20.4.0', () => { test('Explicit resource management is supported', () => { const result = runJest(DIR); expect(result.exitCode).toBe(0); }); });