I'm currently working on a Svelte project with vitest for testing, and I'm facing an issue with excluding a specific file, myfile.js, from the test coverage. Despite configuring vitest with the exclude option, the file is still being included in the coverage report.
vitest.config.js
import { defineConfig } from 'vite';import svelte from '@sveltejs/vite-plugin-svelte';export default defineConfig({ plugins: [svelte({ hot: !process.env.VITEST })], test: { globals: true, environment: 'jsdom', setupFiles: ['src/setupTest.js'], coverage: { reporter: ['text', 'lcov'], all: true }, exclude: ['myFile.js', '**/node_modules/**', '**/dist/**'] }});