27 lines
608 B
TypeScript
27 lines
608 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const fromRoot = (path: string): string =>
|
|
fileURLToPath(new URL(path, import.meta.url));
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@add-ideas/toolbox-contract": fromRoot(
|
|
"./packages/contract/src/index.ts",
|
|
),
|
|
"@add-ideas/toolbox-shell-react": fromRoot(
|
|
"./packages/shell-react/src/index.ts",
|
|
),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: [fromRoot("./vitest.setup.ts")],
|
|
coverage: {
|
|
reporter: ["text", "html"],
|
|
},
|
|
},
|
|
});
|