ReactErrorStacks-test.js — react Source File
Architecture documentation for ReactErrorStacks-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 Suspense;
let Activity;
let ViewTransition;
let ReactNoop;
let waitForAll;
describe('ReactFragment', () => {
let didCatchErrors = [];
let rootCaughtErrors = [];
let SomethingThatErrors;
let CatchingBoundary;
let onCaughtError;
beforeEach(function () {
jest.resetModules();
React = require('react');
Suspense = React.Suspense;
Activity = React.Activity;
ViewTransition = React.ViewTransition;
ReactNoop = require('react-noop-renderer');
const InternalTestUtils = require('internal-test-utils');
waitForAll = InternalTestUtils.waitForAll;
didCatchErrors = [];
rootCaughtErrors = [];
onCaughtError = function (error, errorInfo) {
rootCaughtErrors.push(
error.message,
normalizeCodeLocInfo(errorInfo.componentStack),
React.captureOwnerStack
? normalizeCodeLocInfo(React.captureOwnerStack())
: null,
);
};
SomethingThatErrors = () => {
throw new Error('uh oh');
};
// eslint-disable-next-line no-shadow
CatchingBoundary = class CatchingBoundary extends React.Component {
constructor() {
super();
this.state = {};
}
// ... (286 more lines)
Domain
Subdomains
Classes
Source
Frequently Asked Questions
What does ReactErrorStacks-test.js do?
ReactErrorStacks-test.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
Where is ReactErrorStacks-test.js in the architecture?
ReactErrorStacks-test.js is located at packages/react-reconciler/src/__tests__/ReactErrorStacks-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