Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exits on version selection screen #35

Open
buffcode opened this issue Feb 25, 2019 · 2 comments
Open

Exits on version selection screen #35

buffcode opened this issue Feb 25, 2019 · 2 comments

Comments

@buffcode
Copy link

Type Version
OS Windows 10 Professional x64
Node v10.11.0
LernaUpdateWizard 0.11.1 (installed globally via yarn)

Steps to reproduce:

  1. Run lernaupdate
  2. Select a package
  3. Version selection screen appears and user is dropped to shell immediately

Same happens for --dedupe.

Screencast:
2019-02-25_10-53-45

@Anifacted
Copy link
Owner

Hmm, I may need to try running this on a Windows machine to debug this, which I haven't before.
Could you try running it with a different, small mono-repo, just to rule out that it is not related to your specific repo?

Alternatively, you can clone this repo and run its tests to see if any of the tests are failing on your system, which would be useful information:

  • git clone git@github.com:Anifacted/lerna-update-wizard.git
  • cd lerna-update-wizard
  • npm install
  • npm test

@buffcode
Copy link
Author

buffcode commented Mar 1, 2019

There are lots of failed tests.
Probably we can set up an AppVeyor CI pipeline to test on Windows?

Click to expand
C:\Users\Laurens\workspace\lerna-update-wizard (master -> origin) (lerna-update-wizard@0.11.1)
λ npm test

> lerna-update-wizard@0.11.1 test C:\Users\Laurens\workspace\lerna-update-wizard
> jest --verbose --runInBand

  console.info test/utils/generateProject.js:12
    Creating project: project-noninteractive-1

  console.info test/utils/generateProject.js:12
    └──sub-package

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate --non-interactive C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-noninteractive-1
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-noninteractive-adding

  console.info test/utils/generateProject.js:12
    └──sub-package

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate --non-interactive --dependency lodash@0.2.1 C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-noninteractive-adding
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-noninteractive-adding

  console.info test/utils/generateProject.js:12
    └──sub-package

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate --non-interactive --dependency lodash@0.2.1 --new-installs-mode dev C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-noninteractive-adding
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-noninteractive-adding

  console.info test/utils/generateProject.js:12
    └──sub-package

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate --non-interactive --dependency lodash@0.2.1 --new-installs-mode dev --packages packages/sub-package C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-noninteractive-adding
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-noninteractive-updating

  console.info test/utils/generateProject.js:12
    └──sub-package

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate --non-interactive --dependency lodash@0.2.1 C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-noninteractive-updating
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-noninteractive-updating-scoped-dependency

  console.info test/utils/generateProject.js:12
    └──sub-package

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate --non-interactive --dependency @ngrx/entity@7.0.0 C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-noninteractive-updating-scoped-dependency
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


 FAIL  test/noninteractive.spec.js (73.3s)
  Noninteractive mode
    when given no flags
      × should complain about missing dependency flag (8166ms)
    when adding new dependency
      and omitting --new-installs-mode
        × should complain about missing flag (11110ms)
      and setting --new-installs-mode
        and omitting --packages
          × should complain about missing flag (12044ms)
        and setting --packages
          × should complain about missing flag (11429ms)
    when updating existing dependency
      × should install package (14112ms)
    when updating existing scoped dependency
      × should install package (12416ms)

  ● Noninteractive mode › when given no flags › should complain about missing dependency flag

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● Noninteractive mode › when adding new dependency › and omitting --new-installs-mode › should complain about missing flag

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● Noninteractive mode › when adding new dependency › and setting --new-installs-mode › and omitting --packages › should complain about missing flag

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● Noninteractive mode › when adding new dependency › and setting --new-installs-mode › and setting --packages › should complain about missing flag

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● Noninteractive mode › when updating existing dependency › should install package

    Cannot find module 'C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-noninteractive-adding\packages\sub-package\node_modules\lodash\package.json' from 'noninteractive.spec.js'

      72 |
      73 |           expect(
    > 74 |             require(resolve(
         |             ^
      75 |               projectPath,
      76 |               "packages/sub-package/node_modules/lodash/package.json"
      77 |             )),

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
      at Object.require (test/noninteractive.spec.js:74:13)

  ● Noninteractive mode › when updating existing dependency › should install package

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● Noninteractive mode › when updating existing scoped dependency › should install package

    Cannot find module 'C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-noninteractive-updating\packages\sub-package\node_modules\lodash\package.json' from 'noninteractive.spec.js'

      103 |
      104 |       expect(
    > 105 |         require(resolve(
          |         ^
      106 |           projectPath,
      107 |           "packages/sub-package/node_modules/lodash/package.json"
      108 |         )),

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
      at Object.require (test/noninteractive.spec.js:105:9)

  ● Noninteractive mode › when updating existing scoped dependency › should install package

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-a

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-a
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-a

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-a
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-multi-packages-dir

  console.info test/utils/generateProject.js:12
    └──sub-package-myPackages

  console.info test/utils/generateProject.js:12
    └──sub-package-foobarbaz

  console.info test/utils/generateProject.js:12
    └──sub-package-default

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-multi-packages-dir
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


 FAIL  test/lerna.json.packages.spec.js (51.674s)
  lerna.json `packages` configuration
    when given no lerna.json
      × cannot find any packages for the project (15404ms)
    when given a single non-standard packages location
      × reads and installs correctly from/to that directory (11721ms)
    when given 3 different `packages` locations
      × reads and installs correctly from/to that directory (24102ms)

  ● lerna.json `packages` configuration › when given no lerna.json › cannot find any packages for the project

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● lerna.json `packages` configuration › when given a single non-standard packages location › reads and installs correctly from/to that directory

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● lerna.json `packages` configuration › when given 3 different `packages` locations › reads and installs correctly from/to that directory

    Cannot find module 'C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-a\myPackages\sub-package-a\package.json' from 'lerna.json.packages.spec.js'

      68 |
      69 |       expect(
    > 70 |         require(resolve(projectPath, "myPackages/sub-package-a/package.json")),
         |         ^
      71 |         "to satisfy",
      72 |         { dependencies: { lodash: "^0.2.0" } }
      73 |       );

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
      at Object.require (test/lerna.json.packages.spec.js:70:9)

  ● lerna.json `packages` configuration › when given 3 different `packages` locations › reads and installs correctly from/to that directory

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-a

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/generateProject.js:12
    └──sub-package-b

  console.info test/utils/generateProject.js:12
    └──sub-package-c

  console.info test/utils/generateProject.js:12
    └──sub-package-d

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-a
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-b

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/generateProject.js:12
    └──sub-package-b

  console.info test/utils/generateProject.js:12
    └──sub-package-c

  console.info test/utils/generateProject.js:12
    └──sub-package-d

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-b
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


 FAIL  test/update.dep.spec.js (32.978s)
  Update dependency
    dep already is installed in all selected packages
      × updates (15900ms)
    dep is new to one of the selected packages
      × prompts user about install-type and installs/updates (16852ms)

  ● Update dependency › dep already is installed in all selected packages › updates

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● Update dependency › dep is new to one of the selected packages › prompts user about install-type and installs/updates

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-a

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/generateProject.js:12
    └──sub-package-b

  console.info test/utils/generateProject.js:12
    └──sub-package-c

  console.info test/utils/generateProject.js:12
    └──sub-package-d

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-a
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-add-dependency-non-interactive

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/generateProject.js:12
    └──sub-package-b

  console.info test/utils/generateProject.js:12
    └──sub-package-c

  console.info test/utils/generateProject.js:12
    └──sub-package-d

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate --dependency promise-react-component@0.0.2 C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-add-dependency-non-interactive
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


 FAIL  test/add.dep.spec.js (36.24s)
  Adding new dependency
    × correctly installs a new version (17345ms)
    non-interactive
      × Adds the dependency via the --dependency flag (18479ms)

  ● Adding new dependency › correctly installs a new version

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● Adding new dependency › non-interactive › Adds the dependency via the --dependency flag

    UnexpectedError:
    expected false to be true

      82 |     );
      83 |
    > 84 |     expect(
         |     ^
      85 |       await fileExists(
      86 |         resolve(
      87 |           projectPath,

      at Object.expect (test/add.dep.spec.js:84:5)
          set UNEXPECTED_FULL_TRACE=true to see the full stack trace

  ● Adding new dependency › non-interactive › Adds the dependency via the --dependency flag

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.warn node_modules/unexpected-sinon/lib/unexpected-sinon.js:1082
    unexpected-sinon: The 'was [always] called with [exactly]' assertion is deprecated.
    Please use 'to have a call satisfying' instead:
    http://unexpected.js.org/unexpected-sinon/assertions/spy/to-have-a-call-satisfying/

 PASS  test/utils/liveScan.spec.js
  liveScan
    √ liveScan.match (18ms)
    √ finds line in simple target (10ms)
    √ liveScan.reset works (26ms)
    √ finds line in multiline target (7ms)
    √ times out when not found (1009ms)

  console.info test/utils/generateProject.js:12
    Creating project: project-a

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/generateProject.js:12
    └──sub-package-b

  console.info test/utils/generateProject.js:12
    └──sub-package-c

  console.info test/utils/generateProject.js:12
    └──sub-package-d

 FAIL  test/git.spec.js (16.97s)
  Git features
    × correctly adds git commit and branch (16589ms)

  ● Git features › correctly adds git commit and branch

    Command failed: cd C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-a && echo "node_modules" > .gitignore && git init && git add . && git commit -nam 'initial commit'
    warning: CRLF will be replaced by LF in .gitignore.
    The file will have its original line endings in your working directory.
    warning: CRLF will be replaced by LF in packages/sub-package-b/node_modules/.bin/rimraf.cmd.
    The file will have its original line endings in your working directory.
    fatal: Paths with -a does not make sense.



  console.info test/utils/generateProject.js:12
    Creating project: project-a

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/generateProject.js:12
    └──sub-package-b

  console.info test/utils/generateProject.js:12
    └──sub-package-c

  console.info test/utils/generateProject.js:12
    └──sub-package-d

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-a
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


 FAIL  test/semver.choice.dep.spec.js (20.991s)
  Setting semver prefix for dependency
    × correctly toggles through prefixes using left/right arrow keys (20618ms)

  ● Setting semver prefix for dependency › correctly toggles through prefixes using left/right arrow keys

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-dedupe-flag

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/generateProject.js:12
    └──sub-package-b

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-dedupe-flag --dedupe
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

  console.info test/utils/generateProject.js:12
    Creating project: project-dedupe-flag

  console.info test/utils/generateProject.js:12
    └──sub-package-a

  console.info test/utils/generateProject.js:12
    └──sub-package-b

  console.info test/utils/runProgram.js:120
    Running command: ./bin/lernaupdate C:\Users\Laurens\workspace\lerna-update-wizard\tmp\project-dedupe-flag --dedupe
    Log output:      tail -f ./tmp/test-log.txt | sed 's/\n/\n/g'


(node:22372) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:22372) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:22372) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
    Error: Uncaught [TypeError: Cannot read property 'length' of undefined]
        at reportException (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:680:7)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10) TypeError: Cannot read property 'length' of undefined
        at length (C:\Users\Laurens\workspace\lerna-update-wizard\test\utils\liveScan.js:64:29)
        at Timeout.callback [as _onTimeout] (C:\Users\Laurens\workspace\lerna-update-wizard\node_modules\jsdom\lib\jsdom\browser\Window.js:678:19)
        at ontimeout (timers.js:425:11)
        at tryOnTimeout (timers.js:289:5)
        at listOnTimeout (timers.js:252:5)
        at Timer.processTimers (timers.js:212:10)

 FAIL  test/dedupe.flag.spec.js (50.03s)
  --dedupe flag
    × filters out dependencies with less than different 2 versions installed (18765ms)
    × deduplicates dependency version by installing the highest installed version (30848ms)

  ● --dedupe flag › filters out dependencies with less than different 2 versions installed

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  ● --dedupe flag › deduplicates dependency version by installing the highest installed version

    TypeError: Cannot read property 'length' of undefined

      62 |       const bufferBlob = buffer
      63 |         .split("\n")
    > 64 |         .slice(-targetLines.length)
         |                             ^
      65 |         .join("\n");
      66 |
      67 |       const targetBlob = Array.isArray(target) ? target.join("\n") : target;

      at length (test/utils/liveScan.js:64:29)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

  console.info test/utils/runProgram.js:47

    foobar

  console.info test/utils/runProgram.js:47

    foobar
    baz

  console.info test/utils/runProgram.js:75
    Input: foobar

  console.warn node_modules/unexpected-sinon/lib/unexpected-sinon.js:1082
    unexpected-sinon: The 'was [always] called with [exactly]' assertion is deprecated.
    Please use 'to have a call satisfying' instead:
    http://unexpected.js.org/unexpected-sinon/assertions/spy/to-have-a-call-satisfying/

  console.info test/utils/runProgram.js:75
    Input: foobar

  console.info test/utils/runProgram.js:75
    Input: baz

 PASS  test/utils/runProgram.spec.js
  runProgram
    √ wait (2ms)
    √ find (42ms)
    √ find multiple (6ms)
    √ input (257ms)
    √ input multiple (545ms)

 PASS  test/utils/sequenceFromString.spec.js
  sequenceFromString
    √ consolidates 'inputs' (3ms)
    √ consolidates 'finds' (3ms)
    √ TODO (3ms)

Test Suites: 7 failed, 3 passed, 10 total
Tests:       17 failed, 13 passed, 30 total
Snapshots:   0 total
Time:        303.433s
Ran all test suites.
npm ERR! Test failed.  See above for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants