Enhance README with detailed testing instructions and clarify world generation process; implement chunk boundary handling in OsmWorldBuilder; integrate Vitest for testing in the web project; add theme toggle functionality and improve styling in the web interface.

This commit is contained in:
Leonid Pershin
2026-08-16 18:37:25 +03:00
parent 8460921bfa
commit 312d6bc58a
24 changed files with 2971 additions and 314 deletions
+8 -1
View File
@@ -1,4 +1,5 @@
import { defineConfig } from 'vite';
// vitest/config re-exports Vite's defineConfig with the `test` section added to its type.
import { defineConfig } from 'vitest/config';
/**
* Resolves the API base URL that Aspire injected. `WithReference(api)` publishes each endpoint as
@@ -36,5 +37,11 @@ export default defineConfig(() => {
target: 'es2022',
sourcemap: true,
},
test: {
// Everything under test is pure geometry and rule tables, so no DOM is needed. Modules that touch
// PixiJS are deliberately kept out of these files.
environment: 'node',
include: ['src/**/*.test.ts'],
},
};
});