mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
Adds support for `// @gate` pragma in devtools tests Adds a couple gate test assertions to ensure they continue to work
19 lines
423 B
JavaScript
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', () => {});
|
|
});
|