expectLogs.js — react Source File
Architecture documentation for expectLogs.js, a javascript file in the react codebase. 0 imports, 3 dependents.
Entity Profile
Dependency Diagram
graph LR 5a08878b_7e8d_9201_126f_b2be03bccb80["expectLogs.js"] e9248ace_b139_9678_a79d_b7d2cb6929a0["hello.e2e.js"] e9248ace_b139_9678_a79d_b7d2cb6929a0 --> 5a08878b_7e8d_9201_126f_b2be03bccb80 6a22fc9f_1a4b_6610_95d6_bfdc001cec83["update-expressions.e2e.js"] 6a22fc9f_1a4b_6610_95d6_bfdc001cec83 --> 5a08878b_7e8d_9201_126f_b2be03bccb80 5e899cb6_3612_413e_1a29_a9aab42c7271["use-state.e2e.js"] 5e899cb6_3612_413e_1a29_a9aab42c7271 --> 5a08878b_7e8d_9201_126f_b2be03bccb80 style 5a08878b_7e8d_9201_126f_b2be03bccb80 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* 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;
}
Domain
Subdomains
Functions
Imported By
Source
Frequently Asked Questions
What does expectLogs.js do?
expectLogs.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, E2E subdomain.
What functions are defined in expectLogs.js?
expectLogs.js defines 2 function(s): expectLogsAndClear, log.
What files import expectLogs.js?
expectLogs.js is imported by 3 file(s): hello.e2e.js, update-expressions.e2e.js, use-state.e2e.js.
Where is expectLogs.js in the architecture?
expectLogs.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/e2e/expectLogs.js (domain: TestingUtilities, subdomain: E2E, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/e2e).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free