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

Install yarn #15

Open
yahonda opened this issue Aug 15, 2024 · 0 comments
Open

Install yarn #15

yahonda opened this issue Aug 15, 2024 · 0 comments

Comments

@yahonda
Copy link
Owner

yahonda commented Aug 15, 2024

Steps to reproduce

  • At multipass host
multipass launch 24.04 --cpus 4 --disk 20G --memory 8G --name rails-dev-box --cloud-init ./cloud-init.yaml --timeout 1200
multipass shell rails-dev-box
  • At multipass guest
git clone https://github.com/rails/rails
cd rails
bundle update --bundler
bundle install
cd activestorage
bin/test test/javascript_package_test.rb

Expected behavior

All of tests should pass.

Actual behavior

It gets the following error because the yarn is not installed.

Error:
JavascriptPackageTest#test_compiled_code_is_in_sync_with_source_code:
Errno::ENOENT: No such file or directory - yarn
    test/javascript_package_test.rb:15:in `system'
    test/javascript_package_test.rb:15:in `block in test_compiled_code_is_in_sync_with_source_code'
    /home/ubuntu/rails/activesupport/lib/active_support/testing/assertions.rb:49:in `assert_nothing_raised'
    /home/ubuntu/rails/activesupport/lib/active_support/testing/assertions.rb:287:in `_assert_nothing_raised_or_warn'
    /home/ubuntu/rails/activesupport/lib/active_support/testing/assertions.rb:256:in `assert_no_changes'
    test/javascript_package_test.rb:14:in `test_compiled_code_is_in_sync_with_source_code'


bin/rails test /home/ubuntu/rails/activestorage/test/javascript_package_test.rb:6
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

1 participant