Using Cypress and Vitest in the same project

How to set up a TypeScript project with both Cypress and Vitest.