Skip to content

Commit

Permalink
Update vite.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jhlagado committed Feb 9, 2024
1 parent ee18fc5 commit 01c0aea
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />

import { defineConfig, loadEnv } from "vite";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";

// https://vitejs.dev/config/
export default defineConfig(({ command, mode }) => {
// const env = loadEnv(mode, process.cwd(), "");
// console.log({ command, mode, env });
Expand All @@ -15,6 +15,15 @@ export default defineConfig(({ command, mode }) => {
globals: true,
environment: "jsdom",
setupFiles: "./src/test/setup.ts",
coverage: {
provider: 'v8',
exclude: ['.']
}
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
};
});

0 comments on commit 01c0aea

Please sign in to comment.