Files
waggle-os/apps/www/__tests__/middleware.test.ts
Oleg Maslov 0c3e2ead3b
Some checks failed
Installer Smoke / installer-smoke (push) Has been cancelled
moving
2026-09-02 10:10:29 +02:00

14 lines
346 B
TypeScript

import { describe, expect, it } from 'vitest';
import { config } from '../middleware';
describe('www Clerk middleware boundary', () => {
it('protects only identity and server-owned flows', () => {
expect(config.matcher).toEqual([
'/account(.*)',
'/sign-in(.*)',
'/sign-up(.*)',
'/(api|trpc)(.*)',
]);
});
});