docs(CLAUDE.md): add code style section aligned with glyphdiff conventions
This commit is contained in:
24
vitest.config.ts
Normal file
24
vitest.config.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import path from "node:path";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte({ hot: !process.env.VITEST })],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: "jsdom",
|
||||
setupFiles: ["./src/tests/setup.ts"],
|
||||
include: ["src/**/*.{test,spec}.{js,ts}"],
|
||||
exclude: ["src/tests/e2e/**/*.{test,spec}.{js,ts}"],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
$lib: path.resolve("./src/lib"),
|
||||
$shared: path.resolve("./src/shared"),
|
||||
$pages: path.resolve("./src/pages"),
|
||||
$features: path.resolve("./src/features"),
|
||||
$entities: path.resolve("./src/entities"),
|
||||
$widgets: path.resolve("./src/widgets"),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user