Files
react/packages/react-devtools-shared/src/__tests__/gate-test.js
Josh Story 30ae0baed1 [devtools][tests] add support for @gate pragma (#28479)
Adds support for `// @gate` pragma in devtools tests
Adds a couple gate test assertions to ensure they continue to work
2024-03-01 13:26:07 -08:00

19 lines
423 B
JavaScript

/**
* 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', () => {});
});