Merge branch 'dev' into codex/fix-umami-4062

This commit is contained in:
Mike Cao authored and GitHub committed 2026-03-09 23:31:52 -07:00
commit 8d2b9f8e49
658 files changed
+41277 -143054

No files matched your search

+1 -1
View File
@@ -18,5 +18,5 @@ test('getIpAddress: Standard header', () => {
});
test('getIpAddress: No header', () => {
expect(getIpAddress(new Headers())).toEqual(null);
expect(getIpAddress(new Headers())).toEqual(undefined);
});
@@ -0,0 +1,17 @@
import { matchesConfiguredPath } from '../match-configured-path';
test('matches the exact configured path', () => {
expect(matchesConfiguredPath('/d.js', 'd.js')).toBe(true);
});
test('does not match unrelated asset paths that only share the suffix', () => {
expect(matchesConfiguredPath('/_next/static/chunks/app/dashboard.js', 'd.js')).toBe(false);
});
test('matches paths under the configured base path', () => {
expect(matchesConfiguredPath('/umami/d.js', 'd.js', '/umami')).toBe(true);
});
test('normalizes leading slashes in configured paths', () => {
expect(matchesConfiguredPath('/script.js', '/script.js')).toBe(true);
});