Skip to content

Commit 05509a7

Browse files
authored
chore(repo): Group related machine auth tests (#6524)
1 parent 6f73222 commit 05509a7

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.changeset/eighty-plums-listen.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

integration/presets/longRunningApps.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const createLongRunningApps = () => {
3131
{ id: 'next.appRouter.withSignInOrUpFlow', config: next.appRouter, env: envs.withSignInOrUpFlow },
3232
{ id: 'next.appRouter.withSignInOrUpEmailLinksFlow', config: next.appRouter, env: envs.withSignInOrUpEmailLinksFlow },
3333
{ id: 'next.appRouter.withSessionTasks', config: next.appRouter, env: envs.withSessionTasks },
34-
{ id: 'next.appRouter.withAPIKeys', config: next.appRouter, env: envs.withAPIKeys },
3534
{ id: 'next.appRouter.withLegalConsent', config: next.appRouter, env: envs.withLegalConsent },
3635

3736
/**
@@ -49,9 +48,9 @@ export const createLongRunningApps = () => {
4948

5049
/**
5150
* Machine auth apps
52-
* TODO(rob): Group other machine auth apps together (api keys, m2m tokens, etc)
5351
*/
5452
{ id: 'withMachine.express.vite', config: express.vite, env: envs.withAPIKeys },
53+
{ id: 'withMachine.next.appRouter', config: next.appRouter, env: envs.withAPIKeys },
5554

5655
/**
5756
* Vite apps - basic flows

integration/tests/machine-auth/api-keys.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { appConfigs } from '../../presets';
77
import type { FakeAPIKey, FakeUser } from '../../testUtils';
88
import { createTestUtils } from '../../testUtils';
99

10-
test.describe('Next.js API key auth within clerkMiddleware() @nextjs', () => {
10+
test.describe('Next.js API key auth within clerkMiddleware() @machine', () => {
1111
test.describe.configure({ mode: 'parallel' });
1212
let app: Application;
1313
let fakeUser: FakeUser;

integration/tests/machine-auth/component.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { appConfigs } from '../../presets';
44
import type { FakeOrganization, FakeUser } from '../../testUtils';
55
import { createTestUtils, testAgainstRunningApps } from '../../testUtils';
66

7-
testAgainstRunningApps({ withEnv: [appConfigs.envs.withAPIKeys] })('api keys @generic', ({ app }) => {
7+
testAgainstRunningApps({
8+
withEnv: [appConfigs.envs.withAPIKeys],
9+
withPattern: ['withMachine.next.appRouter'],
10+
})('api keys component @machine', ({ app }) => {
811
test.describe.configure({ mode: 'serial' });
912

1013
let fakeAdmin: FakeUser;

0 commit comments

Comments
 (0)