I think that varies from state to state. In Colorado, any edibles production falls under the general food inspection that they do for kitchens that produce any products that go on the shelves. They are subject to the food safety inspections. In addition, all marijuana products are required to be tested for content of THC, CBD, and other cannabinoids, and for any microbial contamination, pesticides, and residual solvents.
On September 15th, 2017. See this statement in context.