describe Fastlane::Actions::YarnAction do
  describe 'yarn install action' do
    it 'default use case' do
      allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)

      result = Fastlane::FastFile.new.parse("lane :test do
        yarn(task: 'install', package_path: 'spec/fixtures')
      end").runner.execute(:test)

      expect(result).to eq("cd spec && yarn install")
    end
  end
end

describe Fastlane::Actions::YarnAction do
  describe 'yarn install action' do
    it 'default use case' do
      allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)

      result = Fastlane::FastFile.new.parse("lane :test do
        yarn(command: 'install', package_path: 'spec/fixtures')
      end").runner.execute(:test)

      expect(result).to eq("cd spec && yarn install")
    end
  end
end

Fix existing test with renamed param
Fix existing test with renamed param
