2 Commits

Author SHA1 Message Date
2ada8ff474 test(utils): remove unnecessary timing test
All checks were successful
🚀 Release / release (pull_request) Successful in 4m30s
2026-02-03 22:24:45 +01:00
ae4e8fa2cf fix(ui): correctly pass BASE_PATH to ui 2026-02-03 22:24:31 +01:00
2 changed files with 5 additions and 18 deletions

View File

@@ -1,6 +1,8 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
const { BASE_URL = '' } = process.env;
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
@@ -8,6 +10,9 @@ const config = {
preprocess: vitePreprocess(),
kit: {
paths: {
base: BASE_URL === '/' ? '' : BASE_URL
},
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.

View File

@@ -21,24 +21,6 @@ test('fastHashArray doesnt product collisions', () => {
expect(hash_a).not.toEqual(hash_b);
});
test('fastHashArray is fast(ish) < 20ms', () => {
const a = new Int32Array(10_000);
const t0 = performance.now();
fastHashArrayBuffer(a);
const t1 = performance.now();
a[0] = 1;
fastHashArrayBuffer(a);
const t2 = performance.now();
expect(t1 - t0).toBeLessThan(20);
expect(t2 - t1).toBeLessThan(20);
});
// test if the fastHashArray function is deterministic
test('fastHashArray is deterministic', () => {
const a = new Int32Array(1000);