/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
compiler/packages/babel-plugin-react-compiler/src/__tests__/e2e/expectLogs.js
17 строк
368 B
Joe Savona
Rename babel plugin
03 май 2024, 00:12
03 май 2024, 00:12
48e0c70
Код
Авторство
О чём код?
/** * 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. */ const logs = []; export function log(message) { logs.push(message); } export function expectLogsAndClear(expected) { expect(logs).toEqual(expected); logs.length = 0; }