_tests/run_tests.rb
def copy_required_project_resources(test_configuration)
    cleanup(test_configuration)
    if test_configuration[:unit]
      # copy main package.json from project directory in order to use it in the unit-test
      # docker container
      parent_directory = File.dirname(File.expand_path('..', __FILE__))
      FileUtils.cp("#{parent_directory}/package.json", "#{@test_dir}/unit")
    end
  end
# copy required test type resources in order to execute tests.
copy required test type resources in order to execute tests.
copy required test type resources in order to execute tests .
def copy_required_project_resources(test_configuration)
    cleanup(test_configuration)
    if test_configuration[:unit]
      parent_directory = File.dirname(File.expand_path('..', __FILE__))
      FileUtils.cp("#{parent_directory}/package.json", "#{@test_dir}/unit")
    end
  end
def copy_required_project_resources ( test_configuration ) cleanup ( test_configuration ) if test_configuration [ :unit ] parent_directory = File . dirname ( File . expand_path ( '..' , __FILE__ ) ) FileUtils . cp ( "#{parent_directory}/package.json" , "#{@test_dir}/unit" ) end end
copy required test type resources in order to execute tests.
copy required test type resources in order to execute tests .
# copy main package.json from project directory in order to use it in the unit-test # docker container
test_configuration