+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 7e634d48378bf52ad659e902d3a4b82e579cc6cd client/state/selectors/test/get-jetpack-onboarding-pending-steps.js client/state/selectors/test/is-jetpack-onboarding-step-completed.js
Updated 0 paths from b25618a11
+ git apply --verbose --reject -
Checking patch client/state/selectors/test/get-jetpack-onboarding-pending-steps.js...
Checking patch client/state/selectors/test/is-jetpack-onboarding-step-completed.js...
Applied patch client/state/selectors/test/get-jetpack-onboarding-pending-steps.js cleanly.
Applied patch client/state/selectors/test/is-jetpack-onboarding-step-completed.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/state/selectors/test/get-jetpack-onboarding-pending-steps.js
FAIL client/state/selectors/test/get-jetpack-onboarding-pending-steps.js (8.948s)
  getJetpackOnboardingPendingSteps()
    ✕ should return pending status for the woocommerce step (14ms)
    ✕ should return pending status for the stats step

  ● getJetpackOnboardingPendingSteps() › should return pending status for the woocommerce step

    TypeError: Cannot read property 'modules' of undefined

      17 |  */
      18 | export default function isActivatingJetpackModule( state, siteId, moduleSlug ) {
    > 19 | 	return get( state.jetpack.modules.requests, [ siteId, moduleSlug, 'activating' ], null );
      20 | }
      21 |
      
      at isActivatingJetpackModule (client/state/selectors/is-activating-jetpack-module.js:19:28)
      at client/state/selectors/get-jetpack-onboarding-pending-steps.js:27:26
      at arrayReduce (node_modules/lodash/lodash.js:675:21)
      at reduce (node_modules/lodash/lodash.js:9673:14)
      at getJetpackOnboardingPendingSteps (client/state/selectors/get-jetpack-onboarding-pending-steps.js:23:9)
      at Object.<anonymous> (client/state/selectors/test/get-jetpack-onboarding-pending-steps.js:32:19)

  ● getJetpackOnboardingPendingSteps() › should return pending status for the stats step

    TypeError: Cannot read property 'modules' of undefined

      17 |  */
      18 | export default function isActivatingJetpackModule( state, siteId, moduleSlug ) {
    > 19 | 	return get( state.jetpack.modules.requests, [ siteId, moduleSlug, 'activating' ], null );
      20 | }
      21 |
      
      at isActivatingJetpackModule (client/state/selectors/is-activating-jetpack-module.js:19:28)
      at client/state/selectors/get-jetpack-onboarding-pending-steps.js:27:26
      at arrayReduce (node_modules/lodash/lodash.js:675:21)
      at reduce (node_modules/lodash/lodash.js:9673:14)
      at getJetpackOnboardingPendingSteps (client/state/selectors/get-jetpack-onboarding-pending-steps.js:23:9)
      at Object.<anonymous> (client/state/selectors/test/get-jetpack-onboarding-pending-steps.js:56:19)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 2 total
Snapshots:   0 total
Time:        9.122s
Ran all test suites matching /client\/state\/selectors\/test\/get-jetpack-onboarding-pending-steps.js/i.
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/state/selectors/test/is-jetpack-onboarding-step-completed.js
FAIL client/state/selectors/test/is-jetpack-onboarding-step-completed.js
  isJetpackOnboardingStepCompleted()
    ✓ should return false for a null site ID (4ms)
    ✓ should return false if we have no settings for that site
    ✓ should return false for an unexisting step
    ✓ should return true for site title step if we have modified the site title (1ms)
    ✓ should return true for site title step if we have modified the site description
    ✓ should return false if site title and description have not been modified yet
    ✓ should return true for site type step if we have selected the site type (1ms)
    ✓ should return false for site type step if we have not selected the site type yet
    ✓ should return false for site type step if site type is specified as not selected
    ✓ should return true for homepage step if we have selected the homepage format
    ✓ should return false for homepage step if we have not selected the homepage format yet
    ✓ should return false for homepage step if we it is specified as not selected (1ms)
    ✓ should return true for contact form step if we have chosen to create a contact form
    ✓ should return false for contact form step if we have not chosen to create a contact form
    ✓ should return false for contact form step if it is specified as not selected
    ✓ should return true for business address step if we have chosen to add a business address
    ✓ should return false for business address step if we have not added a business address
    ✓ should return false for business address step if it is specified as not added yet (1ms)
    ✓ should return true for woocommerce step if we have chosen to install woocommerce
    ✓ should return false for woocommerce step if we have not installed/activated woocommerce
    ✓ should return false for woocommerce step if it is specified as not installed/activated yet
    ✕ should return true for stats step if we have chosen to activate stats (21ms)
    ✕ should return false for stats step if we have not activated stats
    ✕ should return false for stats step if it is specified as not activated (1ms)

  ● isJetpackOnboardingStepCompleted() › should return true for stats step if we have chosen to activate stats

    TypeError: Cannot read property 'modules' of undefined

      17 |  */
      18 | export default function isJetpackModuleActive( state, siteId, moduleSlug ) {
    > 19 | 	return get( state.jetpack.modules.items, [ siteId, moduleSlug, 'active' ], null );
      20 | }
      21 |
      
      at isJetpackModuleActive (client/state/selectors/is-jetpack-module-active.js:19:28)
      at client/state/selectors/is-jetpack-onboarding-step-completed.js:51:12
      at memoizedSelector (node_modules/lodash/lodash.js:10543:27)
      at memoizedSelector (client/lib/create-selector/index.js:108:11)
      at Object.<anonymous> (client/state/selectors/test/is-jetpack-onboarding-step-completed.js:339:21)

  ● isJetpackOnboardingStepCompleted() › should return false for stats step if we have not activated stats

    TypeError: Cannot read property 'modules' of undefined

      17 |  */
      18 | export default function isJetpackModuleActive( state, siteId, moduleSlug ) {
    > 19 | 	return get( state.jetpack.modules.items, [ siteId, moduleSlug, 'active' ], null );
      20 | }
      21 |
      
      at isJetpackModuleActive (client/state/selectors/is-jetpack-module-active.js:19:28)
      at client/state/selectors/is-jetpack-onboarding-step-completed.js:51:12
      at memoizedSelector (node_modules/lodash/lodash.js:10543:27)
      at memoizedSelector (client/lib/create-selector/index.js:108:11)
      at Object.<anonymous> (client/state/selectors/test/is-jetpack-onboarding-step-completed.js:354:21)

  ● isJetpackOnboardingStepCompleted() › should return false for stats step if it is specified as not activated

    TypeError: Cannot read property 'modules' of undefined

      17 |  */
      18 | export default function isJetpackModuleActive( state, siteId, moduleSlug ) {
    > 19 | 	return get( state.jetpack.modules.items, [ siteId, moduleSlug, 'active' ], null );
      20 | }
      21 |
      
      at isJetpackModuleActive (client/state/selectors/is-jetpack-module-active.js:19:28)
      at client/state/selectors/is-jetpack-onboarding-step-completed.js:51:12
      at memoizedSelector (node_modules/lodash/lodash.js:10543:27)
      at memoizedSelector (client/lib/create-selector/index.js:108:11)
      at Object.<anonymous> (client/state/selectors/test/is-jetpack-onboarding-step-completed.js:369:21)

Test Suites: 1 failed, 1 total
Tests:       3 failed, 21 passed, 24 total
Snapshots:   0 total
Time:        1.725s
Ran all test suites matching /client\/state\/selectors\/test\/is-jetpack-onboarding-step-completed.js/i.
+ : '>>>>> End Test Output'
+ git checkout 7e634d48378bf52ad659e902d3a4b82e579cc6cd client/state/selectors/test/get-jetpack-onboarding-pending-steps.js client/state/selectors/test/is-jetpack-onboarding-step-completed.js
Updated 2 paths from b25618a11
