pupating hornworms

hey! looking to pupate david and clarence (my hornworms) and was wondering how to keep them moist by misting if theyre supposed to have total darkness? is just enough light to see where to spray the mist okay for them? im confused about this part on everything i read. also reallly would appreciate any tips or things to watch out for!! im so scared for my babies