diff --git a/tests/docker-config.test.ts b/tests/docker-config.test.ts deleted file mode 100644 index df0962ae1..000000000 --- a/tests/docker-config.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { describe, it, expect } from 'vitest'; -import fs from 'node:fs'; -import path from 'node:path'; - -describe('Docker Configuration Project Name Integrity', () => { - it('ensures docker-compose.yml has no legacy klz project fallbacks', () => { - const composeContent = fs.readFileSync(path.resolve(process.cwd(), 'docker-compose.yml'), 'utf-8'); - expect(composeContent).not.toContain('klz'); - }); - - it('ensures docker-compose.dev.yml has no legacy klz project fallbacks', () => { - const devComposeContent = fs.readFileSync(path.resolve(process.cwd(), 'docker-compose.dev.yml'), 'utf-8'); - expect(devComposeContent).not.toContain('klz'); - }); -}); diff --git a/tests/proxy-config.test.ts b/tests/proxy-config.test.ts deleted file mode 100644 index 1404ea9b3..000000000 --- a/tests/proxy-config.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { describe, it, expect } from 'vitest'; -import { config } from '../proxy'; - -describe('Proxy Middleware Config Matcher', () => { - const matcherRegex = new RegExp(`^${config.matcher[0]}`); - - - it('matches localized page routes for next-intl processing', () => { - expect(matcherRegex.test('/de')).toBe(true); - expect(matcherRegex.test('/en/contact')).toBe(true); - expect(matcherRegex.test('/karriere')).toBe(true); - }); - - it('excludes static assets with any file extension including uppercase .JPG and subdirectories', () => { - // These should NOT match the middleware (expect test to be false so middleware is bypassed) - expect(matcherRegex.test('/assets/photos/DJI_0048.JPG')).toBe(false); - expect(matcherRegex.test('/assets/videos/web/hero-kabelpflug-poster.jpg')).toBe(false); - expect(matcherRegex.test('/assets/logo-white.png')).toBe(false); - expect(matcherRegex.test('/_next/image')).toBe(false); - }); -});