ReactTransitionTracing-test.js — react Source File
Architecture documentation for ReactTransitionTracing-test.js, a javascript file in the react codebase.
Entity Profile
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.
*
* @emails react-core
* @jest-environment node
*/
let React;
let ReactNoop;
let Scheduler;
let act;
let waitForAll;
let assertLog;
let assertConsoleErrorDev;
let getCacheForType;
let useState;
let Suspense;
let Activity;
let startTransition;
let caches;
let seededCache;
describe('ReactInteractionTracing', () => {
function stringifyDeletions(deletions) {
return deletions
.map(
d =>
`{${Object.keys(d)
.map(key => `${key}: ${d[key]}`)
.sort()
.join(', ')}}`,
)
.join(', ');
}
beforeEach(() => {
jest.resetModules();
React = require('react');
ReactNoop = require('react-noop-renderer');
Scheduler = require('scheduler');
const InternalTestUtils = require('internal-test-utils');
act = InternalTestUtils.act;
waitForAll = InternalTestUtils.waitForAll;
assertLog = InternalTestUtils.assertLog;
assertConsoleErrorDev = InternalTestUtils.assertConsoleErrorDev;
useState = React.useState;
startTransition = React.startTransition;
Suspense = React.Suspense;
Activity = React.Activity;
getCacheForType = React.unstable_getCacheForType;
caches = [];
// ... (2512 more lines)
Source
Frequently Asked Questions
What does ReactTransitionTracing-test.js do?
ReactTransitionTracing-test.js is a source file in the react codebase, written in javascript.
Where is ReactTransitionTracing-test.js in the architecture?
ReactTransitionTracing-test.js is located at packages/react-reconciler/src/__tests__/ReactTransitionTracing-test.js (directory: packages/react-reconciler/src/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free