We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47c8dac commit 4481089Copy full SHA for 4481089
packages/nextjs/test/config.test.ts
@@ -281,6 +281,15 @@ describe('withSentryConfig', () => {
281
282
expect(exportedNextConfigFunction).toHaveBeenCalledWith(runtimePhase, defaultsObject);
283
});
284
+
285
+ it('removes `sentry` property', () => {
286
+ // It's unclear why we need this cast -
287
+ const finalConfig = materializeFinalNextConfig({ ...exportedNextConfig, sentry: {} });
288
+ // const finalConfig = materializeFinalNextConfig({ ...exportedNextConfig, sentry: {} } as ExportedNextConfig);
289
290
+ // We have to check using `in` because TS knows it shouldn't be there and throws a type error if we try to access it
291
+ // directly
292
+ expect('sentry' in finalConfig).toBe(false);
293
294
295
0 commit comments