Skip to content

Commit

Permalink
fix(tests): resolve import alias in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wleklinskimateusz committed Jul 14, 2023
1 parent 8c0bf30 commit 6d79902
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from "path";
import { defineConfig } from "vitest/config";

export default defineConfig({
Expand All @@ -6,4 +7,9 @@ export default defineConfig({
setupFiles: ["./src/tests/setup.ts"],
globals: true,
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});

0 comments on commit 6d79902

Please sign in to comment.