New setup #12714
Annotations
10 errors and 2 warnings
|
src/auto-migrations/migration-tests.test.ts > database migration tests > 20260420000000_add_project_onboarding_state > default-and-updates:
apps/backend/prisma/migrations/20260420000000_add_project_onboarding_state/tests/default-and-updates.ts#L42
Error: Snapshot `database migration tests > 20260420000000_add_project_onboarding_state > default-and-updates 1` mismatched
- Expected
+ Received
- {
- "selected_apps": [
- "authentication",
- "emails",
- ],
- "selected_config_choice": "create-new",
- "selected_email_theme_id": null,
- "selected_payments_country": "US",
- "selected_sign_in_methods": [
- "credential",
- "magicLink",
- ],
- }
+ "{"selected_config_choice":"create-new","selected_apps":["authentication","emails"],"selected_sign_in_methods":["credential","magicLink"],"selected_email_theme_id":null,"selected_payments_country":"US"}"
❯ Module.postMigration prisma/migrations/20260420000000_add_project_onboarding_state/tests/default-and-updates.ts:42:42
❯ src/auto-migrations/migration-tests.test.ts:148:13
|
|
tests/backend/endpoints/api/v1/auth/sessions/index.test.ts > cannot create sessions with an expiry date larger than a year away:
apps/e2e/tests/helpers.ts#L254
StackAssertionError: Expected at least 1 messages with subject containing "Verify your email", but found 0
This is likely an error in Stack. Please make sure you are running the newest version and report it.
❯ Mailbox.waitForMessagesWithSubjectCount tests/helpers.ts:254:13
❯ Mailbox.waitForMessagesWithSubject tests/helpers.ts:240:14
❯ Object.signUpWithEmail tests/backend/backend-helpers.ts:586:9
❯ tests/backend/endpoints/api/v1/auth/sessions/index.test.ts:136:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { extraData: { messages: [] }, customCaptureExtraArgs: [ { messages: [] } ] }
|
|
tests/backend/endpoints/api/v1/auth/passkey/sign-in.test.ts > should allow initiating passkey authentication:
apps/e2e/tests/helpers.ts#L254
StackAssertionError: Expected at least 1 messages with subject containing "Verify your email", but found 0
This is likely an error in Stack. Please make sure you are running the newest version and report it.
❯ Mailbox.waitForMessagesWithSubjectCount tests/helpers.ts:254:13
❯ Mailbox.waitForMessagesWithSubject tests/helpers.ts:240:14
❯ Object.signUpWithEmail tests/backend/backend-helpers.ts:586:9
❯ tests/backend/endpoints/api/v1/auth/passkey/sign-in.test.ts:9:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { extraData: { messages: [] }, customCaptureExtraArgs: [ { messages: [] } ] }
|
|
tests/backend/endpoints/api/v1/internal/email.test.ts > should not allow two different projects to see the same send log:
apps/e2e/tests/backend/backend-helpers.ts#L494
StackAssertionError: Sign-in code message not found after 40 attempts
This is likely an error in Stack. Please make sure you are running the newest version and report it.
❯ sendSignInCode tests/backend/backend-helpers.ts:494:17
❯ Object.signIn tests/backend/backend-helpers.ts:507:33
❯ tests/backend/endpoints/api/v1/internal/email.test.ts:61:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { extraData: { response: { status: 200, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { nonce: 'mc44q686r1mxbb1n2rwzwdt6h6505256wrch4c0' }, fromRequestInit: { method: 'POST', body: '{"email":"default-mailbox--1d0f5f28-473d-4197-84d5-7e4fd00e6efc@stack-generated.example.com","callback_url":"http://localhost:12345/some-callback-url","bot_challenge_token":"mock-turnstile-ok:send_magic_link_email"}', headers: { 'content-type': 'application/json', 'x-stack-access-type': 'client', 'x-stack-project-id': '70bf402e-fe7f-4010-8365-4d17e3a047c7', 'x-stack-admin-access-token': '***', 'x-stack-allow-anonymous-user': 'true' } }, constructor: 'Function<NiceResponse>', getNicifiableKeys: 'Function<getNicifiableKeys>', follow: 'Function<follow>' }, messages: [], outboxEmails: [ { id: '6f8087c5-d579-45ad-9dfc-3a7992005465', created_at_millis: 1778096371883, updated_at_millis: 1778096392077, tsx_source: 'import { type } from \'arktype\';\nimport { Section, Hr, Text, Heading } from \'@react-email/components\';\nimport { Subject, NotificationCategory, Props } from \'@stackframe/emails\';\n\nexport const variablesSchema = type({\n magicLink: \'string\',\n otp: \'string\',\n});\n\nexport function EmailTemplate({ user, project, variables }: Props<typeof variablesSchema.infer>) {\n return (\n <>\n <Subject value={"Sign in to " + project.displayName + ": Your code is " + variables.otp} />\n <NotificationCategory value="Transactional" />\n <div className="font-sans text-base font-normal tracking-[0.15008px] leading-6 m-0 py-8 w-full min-h-full">\n <Section className="mx-auto">\n <Heading as="h3" className="font-sans font-bold text-xl text-center px-6 py-4 m-0">\n Sign in to {project.displayName}\n </Heading>\n <p className="text-sm font-sans font-normal text-center px-6 py-4 m-0 opacity-80">\n Hi{user.displayName ? ", " + user.displayName : ""}! This is your one-time-password for signing in:\n </p>\n <p className="text-2xl font-mono font-bold text-center px-6 py-4 m-0">\n {variables.otp}\n </p>\n <p className="text-sm font-sans font-normal text-center px-6 py-4 m-0">\n Or you can click on{\' \'}\n <a\n key={20}\n href={variables.magicLink}\n rel="noopener noreferrer"\n className="text-blue-600 underline"\n >\n this link\n </a>{\' \'}\n to sign in\n </p>\n <Hr className="px-6 py-4 opacity-20" />\n <p className="text-xs font-sans font-normal text-center px-6 pt-1 pb-6 m-0 opacity-60">\n If you were not expecting this email, you can safely ignore it.\n </p>\n </Section>\n </div>\n </>\n );\n}\n\nEmailTemplate.PreviewVariables = {\n magicLink: "#",\n otp: "3SLSWZ"\n} satisfies typeof variablesSchema.infer', theme_id: '1df07ae6-abf3-4a40-83a5-a1a2cbe336ac', to: { type: 'custom-emails', emails: [ 'default-mailbox--1d0f5f28-473d-4197-84d5-7e4fd00e6efc@stack-generated.example.com' ] }, variables: { otp: 'J74V7C', magicLink: 'http://localhost:12345/some-callback-url?code=j74v7cmc44q686r1mxbb1n2rwzwdt6h6505256wrch4c0' }, skip_deliverability_check: true, scheduled_at_millis: 1778096371882, created_with: 'programmatic-call',
|
|
tests/backend/endpoints/api/v1/risk-scores.test.ts > risk scores > server responses include risk_scores while client responses omit them:
apps/e2e/tests/helpers.ts#L254
StackAssertionError: Expected at least 1 messages with subject containing "Verify your email", but found 0
This is likely an error in Stack. Please make sure you are running the newest version and report it.
❯ Mailbox.waitForMessagesWithSubjectCount tests/helpers.ts:254:13
❯ Mailbox.waitForMessagesWithSubject tests/helpers.ts:240:14
❯ Object.signUpWithEmail tests/backend/backend-helpers.ts:586:9
❯ tests/backend/endpoints/api/v1/risk-scores.test.ts:144:26
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { extraData: { messages: [] }, customCaptureExtraArgs: [ { messages: [] } ] }
|
|
tests/backend/endpoints/api/v1/internal-metrics.test.ts > should return metrics data with users:
apps/e2e/tests/backend/endpoints/api/v1/internal-metrics.test.ts#L179
Error: Snapshot `should return metrics data with users > metrics_result_with_users 1` mismatched
- Expected
+ Received
@@ -5,29 +5,19 @@
"AQ": [
{
"display_name": null,
"id": "<stripped UUID>",
"last_active_at_millis": <stripped field 'last_active_at_millis'>,
- "primary_email": "mailbox-1--<stripped UUID>@stack-generated.example.com",
- "profile_image_url": null,
- "signed_up_at_millis": <stripped field 'signed_up_at_millis'>,
- },
- {
- "display_name": null,
- "id": "<stripped UUID>",
- "last_active_at_millis": <stripped field 'last_active_at_millis'>,
"primary_email": "mailbox-2--<stripped UUID>@stack-generated.example.com",
"profile_image_url": null,
"signed_up_at_millis": <stripped field 'signed_up_at_millis'>,
},
- ],
- "CH": [
{
"display_name": null,
"id": "<stripped UUID>",
"last_active_at_millis": <stripped field 'last_active_at_millis'>,
- "primary_email": "mailbox-3--<stripped UUID>@stack-generated.example.com",
+ "primary_email": "mailbox-1--<stripped UUID>@stack-generated.example.com",
"profile_image_url": null,
"signed_up_at_millis": <stripped field 'signed_up_at_millis'>,
},
],
},
@@ -3021,12 +3011,9 @@
"server_metadata": null,
"signed_up_at_millis": <stripped field 'signed_up_at_millis'>,
},
],
"total_users": 9,
- "users_by_country": {
- "AQ": 2,
- "CH": 1,
- },
+ "users_by_country": { "AQ": 2 },
},
"headers": Headers { <some fields may have been hidden> },
}
❯ it.timeout tests/backend/endpoints/api/v1/internal-metrics.test.ts:179:20
|
|
src/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.ts:
packages/template/src/lib/stack-app/apps/implementations/common.ts#L20
StackAssertionError: Client version was not replaced. Something went wrong during build!
This is likely an error in Stack. Please make sure you are running the newest version and report it.
❯ src/lib/stack-app/apps/implementations/common.ts:20:9
❯ src/lib/stack-app/apps/implementations/admin-app-impl.ts:11:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { extraData: undefined, customCaptureExtraArgs: [ undefined ] }
|
|
src/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.ts:
packages/stack/src/lib/stack-app/apps/implementations/common.ts#L24
StackAssertionError: Client version was not replaced. Something went wrong during build!
This is likely an error in Stack. Please make sure you are running the newest version and report it.
❯ src/lib/stack-app/apps/implementations/common.ts:24:9
❯ src/lib/stack-app/apps/implementations/admin-app-impl.ts:11:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { extraData: undefined, customCaptureExtraArgs: [ undefined ] }
|
|
src/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.ts:
packages/react/src/lib/stack-app/apps/implementations/common.ts#L24
StackAssertionError: Client version was not replaced. Something went wrong during build!
This is likely an error in Stack. Please make sure you are running the newest version and report it.
❯ src/lib/stack-app/apps/implementations/common.ts:24:9
❯ src/lib/stack-app/apps/implementations/admin-app-impl.ts:11:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { extraData: undefined, customCaptureExtraArgs: [ undefined ] }
|
|
src/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.ts:
packages/js/src/lib/stack-app/apps/implementations/common.ts#L23
StackAssertionError: Client version was not replaced. Something went wrong during build!
This is likely an error in Stack. Please make sure you are running the newest version and report it.
❯ src/lib/stack-app/apps/implementations/common.ts:23:9
❯ src/lib/stack-app/apps/implementations/admin-app-impl.ts:10:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { extraData: undefined, customCaptureExtraArgs: [ undefined ] }
|
|
E2E Tests (Node 22.x, Freestyle prod)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: JarvusInnovations/background-action@v1.0.7, pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
E2E Tests (Node 22.x, Freestyle mock)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: JarvusInnovations/background-action@v1.0.7, pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|