mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-07 16:30: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";
|
import { defineConfig } from "vitest/config";
|
||||||
|
|
||||||
export default defineConfig({
|
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: {
|
test: {
|
||||||
environment: "node",
|
environment: "node",
|
||||||
setupFiles: ["./vitest.setup.js"],
|
setupFiles: ["./vitest.setup.js"],
|
||||||
|
|||||||
Reference in New Issue
Block a user