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 051356e commit 5697b7dCopy full SHA for 5697b7d
packages/core/test/lib/logs/internal.test.ts
@@ -259,7 +259,10 @@ describe('_INTERNAL_captureLog', () => {
259
// Add one more to trigger flush
260
_INTERNAL_captureLog({ level: 'info', message: 'trigger flush' }, scope);
261
262
- expect(_INTERNAL_getLogBuffer(client)).toEqual([]);
+ // After flushing the 100 logs, the new log starts a fresh buffer with 1 item
263
+ const buffer = _INTERNAL_getLogBuffer(client);
264
+ expect(buffer).toHaveLength(1);
265
+ expect(buffer?.[0]?.body).toBe('trigger flush');
266
});
267
268
it('does not flush logs buffer when it is empty', () => {
0 commit comments