You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_helper.rb
    path of file: ./repos/vite_ruby/test
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'simplecov'
SimpleCov.start {
  add_filter '/test/'
  add_filter '/vite_ruby/lib/tasks'
}

require 'minitest/autorun'
require 'minitest/reporters'
require 'minitest/stub_any_instance'

Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(color: true, location: true, fast_fail: true)]

require 'rails'
require 'rails/test_help'
    
  def assert_run_command(*argv, flags: [])
    Dir.chdir(test_app_path) {
      begin
        mock = Minitest::Mock.new
        mock.expect(:call, nil, [ViteRuby.config.to_env, %r{node_modules/.bin/vite}, *argv, *flags])
        Kernel.stub(:exec, mock) { ViteRuby.run(argv, exec: true) }
        mock.verify
      rescue ArgumentError => _error
        mock = Minitest::Mock.new
        mock.expect(:call, nil, [ViteRuby.config.to_env, 'yarn', 'vite', *argv, *flags])
        Kernel.stub(:exec, mock) { ViteRuby.run(argv, exec: true) }
        mock.verify
      end