def teardown!
      env = ::Librarian::Chef::Environment.new(project_path: Dir.pwd)
      env.config_db.local['path'] = @originalpath

      FileUtils.rm_rf(@tmpdir) if File.exist?(@tmpdir)
    end
def teardown!
      env = ::Librarian::Chef::Environment.new(project_path: Dir.pwd)
      env.config_db.local['path'] = @originalpath

      FileUtils.rm_rf(@tmpdir) if File.exist?(@tmpdir)
    end
Remove the temporary directory and restore the librarian-chef cookbook path.