feat: add toolbox contract shell and testkit
This commit is contained in:
26
vitest.config.ts
Normal file
26
vitest.config.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
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"],
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user