Closed mattem closed 1 year ago
When running with --require (as done in rules_jasmine for Bazel), the error runner.addRequires is not a function is thrown.
--require
runner.addRequires is not a function
It seems this was renamed to addRequires_ here: https://github.com/jasmine/jasmine-npm/blob/d0b93c46c95445aee2c478d1868a23140134ffcd/lib/runner_base.js#L337
addRequires_
But still called via addRequires here: https://github.com/jasmine/jasmine-npm/blob/d0b93c46c95445aee2c478d1868a23140134ffcd/lib/command.js#L193
addRequires
This is fixed in 5.0.2.
When running with
--require
(as done in rules_jasmine for Bazel), the errorrunner.addRequires is not a function
is thrown.It seems this was renamed to
addRequires_
here: https://github.com/jasmine/jasmine-npm/blob/d0b93c46c95445aee2c478d1868a23140134ffcd/lib/runner_base.js#L337But still called via
addRequires
here: https://github.com/jasmine/jasmine-npm/blob/d0b93c46c95445aee2c478d1868a23140134ffcd/lib/command.js#L193