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 a897111 commit cc55e01Copy full SHA for cc55e01
packages/logger/tests/unit/logBuffer.test.ts
@@ -26,18 +26,9 @@ class TestLogger extends Logger {
26
}
27
28
describe('bufferLog', () => {
29
- const ENVIRONMENT_VARIABLES = process.env;
30
-
31
- beforeEach(() => {
32
- process.env = {
33
- ...ENVIRONMENT_VARIABLES,
34
- POWERTOOLS_LOGGER_LOG_EVENT: 'true',
35
- POWERTOOLS_DEV: 'true',
36
- };
37
- vi.clearAllMocks();
38
- });
39
it('outputs a warning when there is an error buffering the log', () => {
40
// Prepare
+ process.env.POWERTOOLS_DEV = 'true';
41
const logger = new TestLogger();
42
logger.enableBuffering();
43
logger.overrideBufferLogItem();
0 commit comments