Help wit vomiting

Is it possible to vomit and still get negative test my period is due today but still no show yet and every time I eat spaghetti it comes right back up I dont understand please help