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/view_components/test/css
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "components/test_helper"

    
  def filter_selectors(component_class, selectors, ignore_list)
    ignore_list ||= {}

    filtered = (selectors || []).reject do |selector|
      global_list = ignore_list[:global] || []
      global_ignored = global_list.any? { |pattern| selector.match(pattern) }

      component_filter = ignore_list[component_class]
      component_ignored = component_filter ? component_filter.any? { |pattern| selector.match(pattern) } : false

      global_ignored || component_ignored
    end

    filtered.flatten.uniq
  end