ReactDOMFizzSuppressHydrationWarning-test.js — react Source File
Architecture documentation for ReactDOMFizzSuppressHydrationWarning-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 ./scripts/jest/ReactDOMServerIntegrationEnvironment
*/
'use strict';
let JSDOM;
let Stream;
let Scheduler;
let React;
let ReactDOMClient;
let ReactDOMFizzServer;
let document;
let writable;
let container;
let buffer = '';
let hasErrored = false;
let fatalError = undefined;
let waitForAll;
function normalizeError(msg) {
// Take the first sentence to make it easier to assert on.
const idx = msg.indexOf('.');
if (idx > -1) {
return msg.slice(0, idx + 1);
}
return msg;
}
describe('ReactDOMFizzServerHydrationWarning', () => {
beforeEach(() => {
jest.resetModules();
JSDOM = require('jsdom').JSDOM;
Scheduler = require('scheduler');
React = require('react');
ReactDOMClient = require('react-dom/client');
ReactDOMFizzServer = require('react-dom/server');
Stream = require('stream');
const InternalTestUtils = require('internal-test-utils');
waitForAll = InternalTestUtils.waitForAll;
// Test Environment
const jsdom = new JSDOM(
'<!DOCTYPE html><html><head></head><body><div id="container">',
{
runScripts: 'dangerously',
},
);
document = jsdom.window.document;
container = document.getElementById('container');
buffer = '';
hasErrored = false;
// ... (590 more lines)
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does ReactDOMFizzSuppressHydrationWarning-test.js do?
ReactDOMFizzSuppressHydrationWarning-test.js is a source file in the react codebase, written in javascript. It belongs to the CompilerCore domain, Suppression subdomain.
What functions are defined in ReactDOMFizzSuppressHydrationWarning-test.js?
ReactDOMFizzSuppressHydrationWarning-test.js defines 1 function(s): normalizeError.
Where is ReactDOMFizzSuppressHydrationWarning-test.js in the architecture?
ReactDOMFizzSuppressHydrationWarning-test.js is located at packages/react-dom/src/__tests__/ReactDOMFizzSuppressHydrationWarning-test.js (domain: CompilerCore, subdomain: Suppression, directory: packages/react-dom/src/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free