diff --git a/vitest.config.mjs b/vitest.config.js
similarity index 83%
rename from vitest.config.mjs
rename to vitest.config.js
index f070ceb70..ca9f6c1fe 100644
--- a/vitest.config.mjs
+++ b/vitest.config.js
@@ -5,11 +5,14 @@ import jsconfigPaths from 'vite-jsconfig-paths';
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
import path from 'path';
+// https://vitejs.dev/config/
export default defineConfig({
test: {
environment: 'happy-dom',
setupFiles: 'test/vitest/setup-file.js',
include: [
+ // Matches vitest tests in any subfolder of 'src' or into 'test/vitest/__tests__'
+ // Matches all files with extension 'js', 'jsx', 'ts' and 'tsx'
'test/vitest/__tests__/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
],
},