/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
e2e/__tests__/testEnvironment.test.ts
18 строк
566 B
Tom Mrazauskas
refactor(jest-environment)!: remove unnecessary defensive code (#15045)
13 май 2024, 00:18
Не верифицирован
13 май 2024, 00:18
7f2f96b
Код
Авторство
О чём код?
/** * 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 {json as runWithJson} from '../runJest'; import * as testFixturePackage from '../test-environment/package.json'; it('respects testEnvironment docblock', () => { expect(testFixturePackage.jest.testEnvironment).toBe('node'); const {json: result} = runWithJson('test-environment'); expect(result.success).toBe(true); expect(result.numTotalTests).toBe(4); });