ReactDOMFrameScheduling-test.js — react Source File
Architecture documentation for ReactDOMFrameScheduling-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
*/
'use strict';
describe('ReactDOMFrameScheduling', () => {
beforeEach(() => {
jest.resetModules();
jest.unmock('scheduler');
});
// We're just testing importing, not using it.
// It is important because even isomorphic components may import it.
it('can import findDOMNode in Node environment', () => {
const prevWindow = global.window;
try {
// Simulate the Node environment:
delete global.window;
jest.resetModules();
expect(() => {
require('react-dom');
}).not.toThrow();
} finally {
global.window = prevWindow;
}
});
});
Source
Frequently Asked Questions
What does ReactDOMFrameScheduling-test.js do?
ReactDOMFrameScheduling-test.js is a source file in the react codebase, written in javascript.
Where is ReactDOMFrameScheduling-test.js in the architecture?
ReactDOMFrameScheduling-test.js is located at packages/shared/__tests__/ReactDOMFrameScheduling-test.js (directory: packages/shared/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free