Skip to content

A self-hosted media server and file management system

fix: vitest config used during build

aminnausin7f4a21c3b022
diff --git a/tsconfig.json b/tsconfig.json
index 87a629e6..169acad0 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -4,8 +4,5 @@
{
"path": "./tsconfig.app.json"
},
- {
- "path": "./tsconfig.vitest.json"
- }
]
}
\ No newline at end of file
diff --git a/tsconfig.vitest.json b/tsconfig.vitest.json
index 981f980f..2955f3d7 100644
--- a/tsconfig.vitest.json
+++ b/tsconfig.vitest.json
@@ -1,21 +1,14 @@
{
"extends": "./tsconfig.app.json",
"include": [
- "env.d.ts",
- "resources/js/**/*.ts",
- "resources/js/**/*.js",
- "resources/js/**/*.d.ts",
- "resources/js/**/*.vue",
- "resources/js/**/__tests__/*",
+ "resources/js/**/*.spec.ts",
+ "resources/js/**/*.test.ts",
+ "resources/js/**/__tests__/**/*"
],
"exclude": [],
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
- "lib": [
- "ES2022",
- "DOM",
- "DOM.Iterable"
- ],
+ "lib": [],
"types": [
"vitest/globals",
"vite/client",
diff --git a/vite.config.ts b/vite.config.ts
index 764bec90..c6a891e0 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -24,6 +24,7 @@ export default defineConfig({
},
}),
Icons({
+ compiler: 'vue3',
autoInstall: true,
}),
viteCompression(),