I think that you might be successful with the command:
npm run test:coverage:file <your_file>
where test:coverage:file is
test:coverage:file
vitest run --coverage --testNamePattern