resolve imports in testing

This commit is contained in:
Hayden 2022-11-01 14:13:04 -08:00
parent e0d5c3a708
commit ba38b162c8
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 8 additions and 1 deletions

View file

@ -100,7 +100,7 @@ tasks:
ui:watch:
desc: Starts the vitest test runner in watch mode
cmds:
- cd frontend && pnpm vitest --watch
- cd frontend && pnpm run test:watch
ui:dev:
desc: Run frontend development server

View file

@ -1,7 +1,14 @@
import path from "path";
import { defineConfig } from "vite";
export default defineConfig({
test: {
globalSetup: "./test/setup.ts",
},
resolve: {
alias: {
"@": path.resolve(__dirname, ".."),
"~~": path.resolve(__dirname, ".."),
},
},
});