mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Run more flags in VARIANT tests (#18461)
* Run more flags in VARIANT tests * Revert enabling modern system * Fix
This commit is contained in:
@@ -140,8 +140,15 @@ describe('Input event responder', () => {
|
||||
ref.current.dispatchEvent(
|
||||
new Event('input', {bubbles: true, cancelable: true}),
|
||||
);
|
||||
expect(onChangeCalled).toBe(0);
|
||||
expect(onValueChangeCalled).toBe(0);
|
||||
|
||||
if (ReactFeatureFlags.disableInputAttributeSyncing) {
|
||||
// TODO: figure out why. This might be a bug.
|
||||
expect(onChangeCalled).toBe(1);
|
||||
expect(onValueChangeCalled).toBe(1);
|
||||
} else {
|
||||
expect(onChangeCalled).toBe(0);
|
||||
expect(onValueChangeCalled).toBe(0);
|
||||
}
|
||||
});
|
||||
|
||||
it('should consider initial checkbox checked=true to be current', () => {
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
export const warnAboutSpreadingKeyToJSX = __VARIANT__;
|
||||
export const disableModulePatternComponents = __VARIANT__;
|
||||
export const disableInputAttributeSyncing = __VARIANT__;
|
||||
|
||||
// These are already tested in both modes using the build type dimension,
|
||||
// so we don't need to use __VARIANT__ to get extra coverage.
|
||||
@@ -25,6 +26,5 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
|
||||
// Update the tests so that they pass in either mode, then set these
|
||||
// to __VARIANT__.
|
||||
export const enableTrustedTypesIntegration = false;
|
||||
export const disableInputAttributeSyncing = false;
|
||||
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
|
||||
export const enableModernEventSystem = false;
|
||||
|
||||
Reference in New Issue
Block a user