/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
e2e/vmscript-coverage/package/vmscript.js
27 строк
534 B
Tom Mrazauskas
fix(jest-runtime, @jest/transform): allow V8 coverage provider to collect coverage from files which were not loaded explicitly (#13974)
04 мар 2023, 13:03
Не верифицирован
04 мар 2023, 13:03
0060728
Код
Авторство
О чём код?
/** * 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. */ function addOne(inputNumber) { return ++inputNumber; } function isEven(inputNumber) { if (inputNumber % 2 === 0) { return true; } else { return false; } } function notCovered() { return 'not covered'; } /* global inputObject */ if (inputObject.number / 1 === inputObject.number) { isEven(addOne(inputObject.number)); }