2022-06-14 07:56:55 +00:00
|
|
|
import { defineConfig } from "vitest/config";
|
2022-08-01 09:41:39 +00:00
|
|
|
import { fileURLToPath, URL } from "url";
|
2022-06-14 07:56:55 +00:00
|
|
|
|
2022-10-26 03:10:14 +00:00
|
|
|
import { sharedPlugins } from "./vite.config";
|
|
|
|
|
2022-06-14 07:56:55 +00:00
|
|
|
export default defineConfig({
|
2022-10-26 03:10:14 +00:00
|
|
|
plugins: [sharedPlugins],
|
2022-08-01 09:41:39 +00:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
|
|
},
|
|
|
|
},
|
2022-06-14 07:56:55 +00:00
|
|
|
test: {
|
|
|
|
dir: "./src",
|
2022-08-01 09:41:39 +00:00
|
|
|
transformMode: {
|
|
|
|
web: [/\.[jt]sx$/],
|
|
|
|
},
|
2022-06-14 07:56:55 +00:00
|
|
|
},
|
|
|
|
});
|