You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Lukeghenco learn command throws the following error when using the IDE:
/Users/kevinwebster/.rvm/gems/ruby-2.3.1/gems/learn-test-2.4.0/lib/learn_test/strategies/mocha.rb:49:in `results': undefined method `[]' for nil:NilClass (NoMethodError)
from /Users/kevinwebster/.rvm/gems/ruby-2.3.1/gems/learn-test-2.4.0/lib/learn_test/runner.rb:68:in `push_results'
from /Users/kevinwebster/.rvm/gems/ruby-2.3.1/gems/learn-test-2.4.0/lib/learn_test/runner.rb:19:in `run'
from /Users/kevinwebster/.rvm/gems/ruby-2.3.1/gems/learn-test-2.4.0/bin/learn-test:60:in `<top (required)>'
from /Users/kevinwebster/.rvm/gems/ruby-2.3.1/bin/learn-test:22:in `load'
from /Users/kevinwebster/.rvm/gems/ruby-2.3.1/bin/learn-test:22:in `<main>'
from /Users/kevinwebster/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/kevinwebster/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
The root cause is that mocha-multi is missing from the lab's dependencies, so the results are not being output to the .results.json file.
When running learn locally with npm installed, the learn-test mocha strategy automatically checks for the mocha-multi dependency and installs it via npm if it does not exist, so it is not an issue.
Also, as a side note, the learn-test command is not using the "test" script specified in package.json - it is instead running the command referenced in the below issue.
@Lukeghenco
learn
command throws the following error when using the IDE:The root cause is that
mocha-multi
is missing from the lab's dependencies, so the results are not being output to the.results.json
file.When running
learn
locally with npm installed, thelearn-test
mocha strategy automatically checks for themocha-multi
dependency and installs it via npm if it does not exist, so it is not an issue.Also, as a side note, the
learn-test
command is not using the "test" script specified inpackage.json
- it is instead running the command referenced in the below issue.Similar issue and solution/explanation here:
learn-co-curriculum/quote-maker-react-lab#2
The text was updated successfully, but these errors were encountered: