anchor.diff:        expect(
             component.lifecycleCalls,
             equals([
  -            isComponent2 ? matchCall('getDerivedStateFromProps') : null,
  +            isComponent2 ? matchCall('getDerivedStateFromProps', args: [newPropsWithDefaults, expectedState]) : null,
               !isComponent2
                   ? matchCall('componentWillReceiveProps', args: [newPropsWithDefaults], props: initialPropsWithDefaults)
                   : null,
  
positive.code: 
        group('getDerivedStateFromProps returns', () {
          test('derived state, resulting in an updated instance state value', () {
            const Map initialState = const {
              'initialState': 'initial',
            };
  
            final Map initialProps = unmodifiableMap({'getDerivedStateFromProps': (_, __, ___) => initialState});
            final Map expectedProps = unmodifiableMap(defaultProps, initialProps, emptyChildrenProps);
  
            LifecycleTestHelper component = getDartComponent(render(components2.LifecycleTest(initialProps)));
  
            component.lifecycleCalls.clear();
  
            (component as react.Component2).forceUpdate();
  
            expect(
                component.lifecycleCalls,
                equals([
                  matchCall('getDerivedStateFromProps'),
                  matchCall('render', state: initialState),
                  matchCall('getSnapshotBeforeUpdate', args: [expectedProps, initialState], state: initialState),
                  matchCall('componentDidUpdate', args: [expectedProps, initialState, null], state: initialState),
                ].where((matcher) => matcher != null).toList()));
          });
  
  
negative.code:       expect(
            component.lifecycleCalls,
            equals([
              isComponent2 ? matchCall('getDerivedStateFromProps', args: [expectedProps, newState]) : null,
              skipLegacyContextTests
                  ? matchCall('shouldComponentUpdate', args: [expectedProps, newState, newContext], state: initialState)
                  : matchCall('shouldComponentUpdateWithContext',
  