My contract is written in a specific way to address this.
Nanny and employer agree to X weeks as notice. If employer chooses to have nanny stopping working within that time period, the remainder will be paid out as severance.
Many employers prefer to pay out severance rather than giving notice. Some nannies prefer it as well, but most would rather spend a little extra time with your children.