In a lawsuit filed Wednesday in Manhattan federal court, four former store detectives in CVS stores in New York claimed they were encouraged by their supervisors to racially profile shoppers.

A spokeswoman for the Woonsocket, R.I.-based chain said Wednesday, “CVS Health has firm nondiscrimination policies that it rigorously enforces. We serve all communities and we do not tolerate any policy or practice that discriminates against any group. We are shocked by the allegations in this complaint and we intend to defend against them vigorously.”

She declined to say how long the health-care chain has to respond to the class-action suit.

Last month, CVS Health Care revealed plans to acquire Omnicare Inc., the nursing-home pharmacy, in a $12.7 billion deal. CVS has more than 7,800 pharmacies and 900 walk-in medical clinics.