mirror of
https://github.com/tiennm99/loldle.git
synced 2026-09-01 04:19:54 +00:00
classic-mode.js moves byte-for-byte. champion-data.js swaps the Next.js env-var fetch prefix for asset() from $app/paths, which resolves to /champions.json in dev and /loldle/champions.json in the deployed build. getChampionImageUrl keeps returning an absolute Data Dragon URL, unwrapped. Drops three exports with no callers: getAllChampions, getChampionByName, getGuessedNames. The characterization suite passes unchanged against the new location -- only import specifiers moved, no assertions touched.
17 lines
435 B
JavaScript
17 lines
435 B
JavaScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
// Vitest does not read svelte.config.js, so $lib must be declared here too.
|
|
alias: {
|
|
$lib: fileURLToPath(new URL("./src/lib", import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
setupFiles: ["./test/setup-local-storage.js"],
|
|
include: ["test/**/*.test.js"],
|
|
},
|
|
});
|