mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-08 00:40:52 +08:00
Resolve some paths
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import { fileURLToPath, URL } from "node:url";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
components: fileURLToPath(new URL("./src/components", import.meta.url)),
|
||||
utils: fileURLToPath(new URL("./src/utils", import.meta.url)),
|
||||
widgets: fileURLToPath(new URL("./src/widgets", import.meta.url)),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
environment: "node",
|
||||
setupFiles: ["./vitest.setup.js"],
|
||||
|
||||
Reference in New Issue
Block a user