ReactIncrementalReflection-test.js — react Source File
Architecture documentation for ReactIncrementalReflection-test.js, a javascript file in the react codebase.
Entity Profile
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.
*
* @emails react-core
* @jest-environment node
*/
'use strict';
let React;
let ReactNoop;
let Scheduler;
let waitFor;
let waitForAll;
describe('ReactIncrementalReflection', () => {
beforeEach(() => {
jest.resetModules();
React = require('react');
ReactNoop = require('react-noop-renderer');
Scheduler = require('scheduler');
const InternalTestUtils = require('internal-test-utils');
waitFor = InternalTestUtils.waitFor;
waitForAll = InternalTestUtils.waitForAll;
});
function div(...children) {
children = children.map(c =>
typeof c === 'string' ? {text: c, hidden: false} : c,
);
return {type: 'div', children, prop: undefined, hidden: false};
}
function span(prop) {
return {type: 'span', children: [], prop, hidden: false};
}
it('finds no node before insertion and correct node before deletion', async () => {
let classInstance = null;
function findInstance(inst) {
// We ignore warnings fired by findInstance because we are testing
// that the actual behavior still works as expected even though it
// is deprecated.
const oldConsoleError = console.error;
console.error = jest.fn();
try {
return ReactNoop.findInstance(inst);
} finally {
console.error = oldConsoleError;
}
}
class Component extends React.Component {
UNSAFE_componentWillMount() {
// ... (124 more lines)
Domain
Subdomains
Classes
Source
Frequently Asked Questions
What does ReactIncrementalReflection-test.js do?
ReactIncrementalReflection-test.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
Where is ReactIncrementalReflection-test.js in the architecture?
ReactIncrementalReflection-test.js is located at packages/react-reconciler/src/__tests__/ReactIncrementalReflection-test.js (domain: BabelCompiler, subdomain: Validation, 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