We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a88403 commit ef5faf2Copy full SHA for ef5faf2
typescript/vitest.config.ts renamed to typescript/vitest.config.mjs
@@ -1,10 +1,10 @@
1
-/// <reference types="vitest" />
2
import { defineConfig } from "vitest/config";
3
-import react from "@vitejs/plugin-react";
4
-import { resolve } from "path";
+import path from "path";
+import { fileURLToPath } from "url";
+
5
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
7
export default defineConfig({
- plugins: [react()],
8
test: {
9
environment: "jsdom",
10
setupFiles: ["./tests/setup.ts"],
@@ -13,7 +13,7 @@ export default defineConfig({
13
},
14
resolve: {
15
alias: {
16
- "@": resolve(__dirname, "./src"),
+ "@": path.resolve(__dirname, "./src"),
17
18
19
});
0 commit comments