This commit is contained in:
13
apps/www/__tests__/middleware.test.ts
Normal file
13
apps/www/__tests__/middleware.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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)(.*)',
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user