Skip to content

Commit 534b9f2

Browse files
hafzismcodex
andcommitted
test(nextjs): Scope Turbopack warning assertion
Co-Authored-By: OpenAI Codex <codex@openai.com>
1 parent 9b9d94c commit 534b9f2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/nextjs/test/config/withSentryConfig.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,10 @@ describe('withSentryConfig', () => {
12981298
materializeFinalNextConfig(exportedNextConfig);
12991299
materializeFinalNextConfig(exportedNextConfig);
13001300

1301-
expect(consoleWarnSpy).toHaveBeenCalledTimes(1);
1301+
const turbopackWarnings = consoleWarnSpy.mock.calls.filter(([message]) =>
1302+
String(message).includes('WARNING: You are using the Sentry SDK with Turbopack'),
1303+
);
1304+
expect(turbopackWarnings).toHaveLength(1);
13021305

13031306
consoleWarnSpy.mockRestore();
13041307
});

0 commit comments

Comments
 (0)