They run clinical trials on them to make sure they are safe and effective.
https://www.cdc.gov/flu/vaccines-work/effectivenessqa.htm
Manufacturers guess which flu strain will predominate and start working 9-12 months early to capture the data for approval.
There is no way a new Covid mRNA vaccine will be approved with safety and efficacy data from a clinical trial. That will be take months to complete.