+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 97d16987f9b4897e3e71ab9d3688ad59d4c57e3d client/jetpack-connect/test/utils.js
Updated 0 paths from 09534c9cd
+ git apply --verbose --reject -
Checking patch client/jetpack-connect/test/utils.js...
Applied patch client/jetpack-connect/test/utils.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/jetpack-connect/test/utils.js
FAIL client/jetpack-connect/test/utils.js
  addCalypsoEnvQueryArg
    ✓ should add config env_id as calypso_env (4ms)
  getRoleFromScope
    ✕ should return role from scope (6ms)
    ✕ should return null if no role is found
    ✕ should return null if no hash is found
    ✕ should return null if scope is malformed

  ● getRoleFromScope › should return role from scope

    TypeError: (0 , _utils.getRoleFromScope) is not a function

      26 | describe( 'getRoleFromScope', () => {
      27 | 	test( 'should return role from scope', () => {
    > 28 | 		const result = getRoleFromScope( 'role:e8ae7346d1a0f800b64e' );
      29 | 		expect( result ).toBe( 'role' );
      30 | 	} );
      31 |
      
      at Object.<anonymous> (client/jetpack-connect/test/utils.js:28:18)

  ● getRoleFromScope › should return null if no role is found

    TypeError: (0 , _utils.getRoleFromScope) is not a function

      31 |
      32 | 	test( 'should return null if no role is found', () => {
    > 33 | 		const result = getRoleFromScope( ':e8ae7346d1a0f800b64e' );
      34 | 		expect( result ).toBe( null );
      35 | 	} );
      36 |
      
      at Object.<anonymous> (client/jetpack-connect/test/utils.js:33:18)

  ● getRoleFromScope › should return null if no hash is found

    TypeError: (0 , _utils.getRoleFromScope) is not a function

      36 |
      37 | 	test( 'should return null if no hash is found', () => {
    > 38 | 		const result = getRoleFromScope( 'role' );
      39 | 		expect( result ).toBe( null );
      40 | 	} );
      41 |
      
      at Object.<anonymous> (client/jetpack-connect/test/utils.js:38:18)

  ● getRoleFromScope › should return null if scope is malformed

    TypeError: (0 , _utils.getRoleFromScope) is not a function

      41 |
      42 | 	test( 'should return null if scope is malformed', () => {
    > 43 | 		const result = getRoleFromScope( 'rolee8ae7346d1a0f800b64e' );
      44 | 		expect( result ).toBe( null );
      45 | 	} );
      46 | } );
      
      at Object.<anonymous> (client/jetpack-connect/test/utils.js:43:18)

Test Suites: 1 failed, 1 total
Tests:       4 failed, 1 passed, 5 total
Snapshots:   0 total
Time:        6.584s
Ran all test suites matching /client\/jetpack-connect\/test\/utils.js/i.
+ : '>>>>> End Test Output'
+ git checkout 97d16987f9b4897e3e71ab9d3688ad59d4c57e3d client/jetpack-connect/test/utils.js
Updated 1 path from 09534c9cd
