mirror of
https://github.com/tiennm99/loldle.git
synced 2026-10-11 03:13:42 +00:00
Move the SvelteKit config into vite.config.js, replace the $lib alias with #lib subpath imports (dropping the vitest alias), extend $app/tsconfig, and pass asset() paths without a leading slash. Drop the @babel/core and js-yaml overrides, which no longer match anything in the tree.
11 lines
287 B
JavaScript
11 lines
287 B
JavaScript
import { defineConfig } from "vitest/config";
|
|
|
|
// #lib/* resolves through package.json "imports", so no alias is needed here.
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "node",
|
|
setupFiles: ["./test/setup-local-storage.js"],
|
|
include: ["test/**/*.test.js"],
|
|
},
|
|
});
|