mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 08:40:28 +00:00
resolve imports in testing
This commit is contained in:
parent
e0d5c3a708
commit
ba38b162c8
2 changed files with 8 additions and 1 deletions
|
@ -100,7 +100,7 @@ tasks:
|
||||||
ui:watch:
|
ui:watch:
|
||||||
desc: Starts the vitest test runner in watch mode
|
desc: Starts the vitest test runner in watch mode
|
||||||
cmds:
|
cmds:
|
||||||
- cd frontend && pnpm vitest --watch
|
- cd frontend && pnpm run test:watch
|
||||||
|
|
||||||
ui:dev:
|
ui:dev:
|
||||||
desc: Run frontend development server
|
desc: Run frontend development server
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
|
import path from "path";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
globalSetup: "./test/setup.ts",
|
globalSetup: "./test/setup.ts",
|
||||||
},
|
},
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
"@": path.resolve(__dirname, ".."),
|
||||||
|
"~~": path.resolve(__dirname, ".."),
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue