Home / File/ gate-test.js — react Source File

gate-test.js — react Source File

Architecture documentation for gate-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.
 *
 * @flow
 */

describe('gate', () => {
  //@gate false
  it('should expect an error for this test', () => {
    throw new Error('This test should fail');
  });

  //@gate true
  it('should not an error for this test', () => {});
});

Frequently Asked Questions

What does gate-test.js do?
gate-test.js is a source file in the react codebase, written in javascript.
Where is gate-test.js in the architecture?
gate-test.js is located at packages/react-devtools-shared/src/__tests__/gate-test.js (directory: packages/react-devtools-shared/src/__tests__).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free